HEX: #D5CC12
RGB: (213,204,18)
#D5CC12 contains mainly red and green colors. Web safe color of #D5CC12 is #CCCC00 (or #CC0).
#D5CC12 color RGB value is (213,204,18).
RGB: (213,204,18) (84%,80%,7%)
R 213 of 255 = 84%
G 204 of 255 = 80%
B 18 of 255 = 7%
R + G + B ~ 57%. #D5CC12 is middle color (not dark and not light).
R + G + B =
213 + 204 + 18 = 435 (100%)
R 213 of 435 ~ 48.97%
G 204 of 435 ~ 46.9%
B 18 of 435 ~ 4.14%
#D5CC12 color CMYK value is (0,4,92,16).
CMYK: (0,4,92,16) C0M4Y92K16 (0%,4%,92%,16%) (0.00/0.04/0.92/0.16)
D5 | CC | 12 | |
---|---|---|---|
RGB | 213 | 204 | 18 |
HSL | 57° | 84.42% | 45.29% |
HSB/HSV | 57° | 91.55% | 83.53% |
CMYK | 0.00% | 4.23% | 91.55% |
16.47% |
HEX | D5 | CC | 12 |
Decimal | 213 | 204 | 18 |
Binary | 11010101 | 11001100 | 10010 |
Octal | 325 | 314 | 22 |
Examples of css and html codes for elements with #D5CC12 color. Also use rgb(213,204,18) instead hex code.
.myTextColor { color: #D5CC12; }
<p style="color:#D5CC12">This sample text font color is #D5CC12.</p>
This text font color is #D5CC12.
.myBgColor { background-color: #D5CC12; }
<div style="background-color:#D5CC12">Inner text</div>
This div background color is #D5CC12.
.myBorderColor { border: 1px solid #D5CC12; }
<div style="border:3px solid #D5CC12">Div</div>
This div border color is #D5CC12.
.myOpacity80 { color: #D5CC12; opacity: 0.8; }
<p style="color:#D5CC12;opacity:0.8;">80%</p>
Text with #D5CC12 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #D5CC12;}
<p style="text-shadow: 3px 3px 1px #D5CC12">Text here.</p>
This text has shadow with #D5CC12 color.
.textShadow {text-shadow: 3px 3px 1px #D5CC12, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #D5CC12, 5px 5px 20px red">Text here.</p>
This text has shadow with #D5CC12 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#D5CC12, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#D5CC12, Direction=45, Strength=4)">Text</p>
This text has shadow with #D5CC12 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #D5CC12; -webkit-box-shadow: 1px 1px 3px 2px #D5CC12; box-shadow: 1px 1px 3px 2px #D5CC12; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #D5CC12; -webkit-box-shadow: 1px 1px 3px 2px #D5CC12; box-shadow:1px 1px 3px 2px #D5CC12;">
Div content here</div>
This text has color #D5CC12 on black background.
This text has color #D5CC12 on white background.
This text has black color on #D5CC12 background.
This text has white color on #D5CC12 background.