HEX: #D8AD2E
RGB: (216,173,46)
#D8AD2E contains mainly red and green colors. Web safe color of #D8AD2E is #CC9933 (or #C93).
#D8AD2E color RGB value is (216,173,46).
RGB: (216,173,46) (85%,68%,18%)
R 216 of 255 = 85%
G 173 of 255 = 68%
B 46 of 255 = 18%
R + G + B ~ 57%. #D8AD2E is middle color (not dark and not light).
R + G + B =
216 + 173 + 46 = 435 (100%)
R 216 of 435 ~ 49.66%
G 173 of 435 ~ 39.77%
B 46 of 435 ~ 10.57%
#D8AD2E color CMYK value is (0,20,79,15).
CMYK: (0,20,79,15) C0M20Y79K15 (0%,20%,79%,15%) (0.00/0.20/0.79/0.15)
D8 | AD | 2E | |
---|---|---|---|
RGB | 216 | 173 | 46 |
HSL | 45° | 68.55% | 51.37% |
HSB/HSV | 45° | 78.70% | 84.71% |
CMYK | 0.00% | 19.91% | 78.70% |
15.29% |
HEX | D8 | AD | 2E |
Decimal | 216 | 173 | 46 |
Binary | 11011000 | 10101101 | 101110 |
Octal | 330 | 255 | 56 |
Examples of css and html codes for elements with #D8AD2E color. Also use rgb(216,173,46) instead hex code.
.myTextColor { color: #D8AD2E; }
<p style="color:#D8AD2E">This sample text font color is #D8AD2E.</p>
This text font color is #D8AD2E.
.myBgColor { background-color: #D8AD2E; }
<div style="background-color:#D8AD2E">Inner text</div>
This div background color is #D8AD2E.
.myBorderColor { border: 1px solid #D8AD2E; }
<div style="border:3px solid #D8AD2E">Div</div>
This div border color is #D8AD2E.
.myOpacity80 { color: #D8AD2E; opacity: 0.8; }
<p style="color:#D8AD2E;opacity:0.8;">80%</p>
Text with #D8AD2E color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #D8AD2E;}
<p style="text-shadow: 3px 3px 1px #D8AD2E">Text here.</p>
This text has shadow with #D8AD2E color.
.textShadow {text-shadow: 3px 3px 1px #D8AD2E, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #D8AD2E, 5px 5px 20px red">Text here.</p>
This text has shadow with #D8AD2E primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#D8AD2E, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#D8AD2E, Direction=45, Strength=4)">Text</p>
This text has shadow with #D8AD2E and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #D8AD2E; -webkit-box-shadow: 1px 1px 3px 2px #D8AD2E; box-shadow: 1px 1px 3px 2px #D8AD2E; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #D8AD2E; -webkit-box-shadow: 1px 1px 3px 2px #D8AD2E; box-shadow:1px 1px 3px 2px #D8AD2E;">
Div content here</div>
This text has color #D8AD2E on black background.
This text has color #D8AD2E on white background.
This text has black color on #D8AD2E background.
This text has white color on #D8AD2E background.