HEX: #D4AB2E
RGB: (212,171,46)
#D4AB2E contains mainly red and green colors. Web safe color of #D4AB2E is #CC9933 (or #C93).
#D4AB2E color RGB value is (212,171,46).
RGB: (212,171,46) (83%,67%,18%)
R 212 of 255 = 83%
G 171 of 255 = 67%
B 46 of 255 = 18%
R + G + B ~ 56%. #D4AB2E is middle color (not dark and not light).
R + G + B =
212 + 171 + 46 = 429 (100%)
R 212 of 429 ~ 49.42%
G 171 of 429 ~ 39.86%
B 46 of 429 ~ 10.72%
#D4AB2E color CMYK value is (0,19,78,17).
CMYK: (0,19,78,17) C0M19Y78K17 (0%,19%,78%,17%) (0.00/0.19/0.78/0.17)
D4 | AB | 2E | |
---|---|---|---|
RGB | 212 | 171 | 46 |
HSL | 45° | 65.87% | 50.59% |
HSB/HSV | 45° | 78.30% | 83.14% |
CMYK | 0.00% | 19.34% | 78.30% |
16.86% |
HEX | D4 | AB | 2E |
Decimal | 212 | 171 | 46 |
Binary | 11010100 | 10101011 | 101110 |
Octal | 324 | 253 | 56 |
Examples of css and html codes for elements with #D4AB2E color. Also use rgb(212,171,46) instead hex code.
.myTextColor { color: #D4AB2E; }
<p style="color:#D4AB2E">This sample text font color is #D4AB2E.</p>
This text font color is #D4AB2E.
.myBgColor { background-color: #D4AB2E; }
<div style="background-color:#D4AB2E">Inner text</div>
This div background color is #D4AB2E.
.myBorderColor { border: 1px solid #D4AB2E; }
<div style="border:3px solid #D4AB2E">Div</div>
This div border color is #D4AB2E.
.myOpacity80 { color: #D4AB2E; opacity: 0.8; }
<p style="color:#D4AB2E;opacity:0.8;">80%</p>
Text with #D4AB2E color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #D4AB2E;}
<p style="text-shadow: 3px 3px 1px #D4AB2E">Text here.</p>
This text has shadow with #D4AB2E color.
.textShadow {text-shadow: 3px 3px 1px #D4AB2E, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #D4AB2E, 5px 5px 20px red">Text here.</p>
This text has shadow with #D4AB2E primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#D4AB2E, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#D4AB2E, Direction=45, Strength=4)">Text</p>
This text has shadow with #D4AB2E and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #D4AB2E; -webkit-box-shadow: 1px 1px 3px 2px #D4AB2E; box-shadow: 1px 1px 3px 2px #D4AB2E; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #D4AB2E; -webkit-box-shadow: 1px 1px 3px 2px #D4AB2E; box-shadow:1px 1px 3px 2px #D4AB2E;">
Div content here</div>
This text has color #D4AB2E on black background.
This text has color #D4AB2E on white background.
This text has black color on #D4AB2E background.
This text has white color on #D4AB2E background.