HEX: #D99D1F
RGB: (217,157,31)
#D99D1F contains mainly red color. Web safe color of #D99D1F is #CC9933 (or #C93).
#D99D1F color RGB value is (217,157,31).
RGB: (217,157,31) (85%,62%,12%)
R 217 of 255 = 85%
G 157 of 255 = 62%
B 31 of 255 = 12%
R + G + B ~ 53%. #D99D1F is middle color (not dark and not light).
R + G + B =
217 + 157 + 31 = 405 (100%)
R 217 of 405 ~ 53.58%
G 157 of 405 ~ 38.77%
B 31 of 405 ~ 7.65%
#D99D1F color CMYK value is (0,28,86,15).
CMYK: (0,28,86,15) C0M28Y86K15 (0%,28%,86%,15%) (0.00/0.28/0.86/0.15)
D9 | 9D | 1F | |
---|---|---|---|
RGB | 217 | 157 | 31 |
HSL | 41° | 75.00% | 48.63% |
HSB/HSV | 41° | 85.71% | 85.10% |
CMYK | 0.00% | 27.65% | 85.71% |
14.90% |
HEX | D9 | 9D | 1F |
Decimal | 217 | 157 | 31 |
Binary | 11011001 | 10011101 | 11111 |
Octal | 331 | 235 | 37 |
Examples of css and html codes for elements with #D99D1F color. Also use rgb(217,157,31) instead hex code.
.myTextColor { color: #D99D1F; }
<p style="color:#D99D1F">This sample text font color is #D99D1F.</p>
This text font color is #D99D1F.
.myBgColor { background-color: #D99D1F; }
<div style="background-color:#D99D1F">Inner text</div>
This div background color is #D99D1F.
.myBorderColor { border: 1px solid #D99D1F; }
<div style="border:3px solid #D99D1F">Div</div>
This div border color is #D99D1F.
.myOpacity80 { color: #D99D1F; opacity: 0.8; }
<p style="color:#D99D1F;opacity:0.8;">80%</p>
Text with #D99D1F color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #D99D1F;}
<p style="text-shadow: 3px 3px 1px #D99D1F">Text here.</p>
This text has shadow with #D99D1F color.
.textShadow {text-shadow: 3px 3px 1px #D99D1F, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #D99D1F, 5px 5px 20px red">Text here.</p>
This text has shadow with #D99D1F primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#D99D1F, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#D99D1F, Direction=45, Strength=4)">Text</p>
This text has shadow with #D99D1F and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #D99D1F; -webkit-box-shadow: 1px 1px 3px 2px #D99D1F; box-shadow: 1px 1px 3px 2px #D99D1F; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #D99D1F; -webkit-box-shadow: 1px 1px 3px 2px #D99D1F; box-shadow:1px 1px 3px 2px #D99D1F;">
Div content here</div>
This text has color #D99D1F on black background.
This text has color #D99D1F on white background.
This text has black color on #D99D1F background.
This text has white color on #D99D1F background.