HEX: #42A915
RGB: (66,169,21)
#42A915 contains mainly green color. Web safe color of #42A915 is #339900 (or #390).
#42A915 color RGB value is (66,169,21).
RGB: (66,169,21) (26%,66%,8%)
R 66 of 255 = 26%
G 169 of 255 = 66%
B 21 of 255 = 8%
R + G + B ~ 33%. #42A915 is quite dark color.
R + G + B =
66 + 169 + 21 = 256 (100%)
R 66 of 256 ~ 25.78%
G 169 of 256 ~ 66.02%
B 21 of 256 ~ 8.2%
#42A915 color CMYK value is (61,0,88,34).
CMYK: (61,0,88,34) C61M0Y88K34 (61%,0%,88%,34%) (0.61/0.00/0.88/0.34)
42 | A9 | 15 | |
---|---|---|---|
RGB | 66 | 169 | 21 |
HSL | 102° | 77.89% | 37.25% |
HSB/HSV | 102° | 87.57% | 66.27% |
CMYK | 60.95% | 0.00% | 87.57% |
33.73% |
HEX | 42 | A9 | 15 |
Decimal | 66 | 169 | 21 |
Binary | 1000010 | 10101001 | 10101 |
Octal | 102 | 251 | 25 |
Examples of css and html codes for elements with #42A915 color. Also use rgb(66,169,21) instead hex code.
.myTextColor { color: #42A915; }
<p style="color:#42A915">This sample text font color is #42A915.</p>
This text font color is #42A915.
.myBgColor { background-color: #42A915; }
<div style="background-color:#42A915">Inner text</div>
This div background color is #42A915.
.myBorderColor { border: 1px solid #42A915; }
<div style="border:3px solid #42A915">Div</div>
This div border color is #42A915.
.myOpacity80 { color: #42A915; opacity: 0.8; }
<p style="color:#42A915;opacity:0.8;">80%</p>
Text with #42A915 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #42A915;}
<p style="text-shadow: 3px 3px 1px #42A915">Text here.</p>
This text has shadow with #42A915 color.
.textShadow {text-shadow: 3px 3px 1px #42A915, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #42A915, 5px 5px 20px red">Text here.</p>
This text has shadow with #42A915 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#42A915, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#42A915, Direction=45, Strength=4)">Text</p>
This text has shadow with #42A915 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #42A915; -webkit-box-shadow: 1px 1px 3px 2px #42A915; box-shadow: 1px 1px 3px 2px #42A915; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #42A915; -webkit-box-shadow: 1px 1px 3px 2px #42A915; box-shadow:1px 1px 3px 2px #42A915;">
Div content here</div>
This text has color #42A915 on black background.
This text has color #42A915 on white background.
This text has black color on #42A915 background.
This text has white color on #42A915 background.