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