HEX: #42AD15
RGB: (66,173,21)
#42AD15 contains mainly green color. Web safe color of #42AD15 is #339900 (or #390).
#42AD15 color RGB value is (66,173,21).
RGB: (66,173,21) (26%,68%,8%)
R 66 of 255 = 26%
G 173 of 255 = 68%
B 21 of 255 = 8%
R + G + B ~ 34%. #42AD15 is quite dark color.
R + G + B =
66 + 173 + 21 = 260 (100%)
R 66 of 260 ~ 25.38%
G 173 of 260 ~ 66.54%
B 21 of 260 ~ 8.08%
#42AD15 color CMYK value is (62,0,88,32).
CMYK: (62,0,88,32) C62M0Y88K32 (62%,0%,88%,32%) (0.62/0.00/0.88/0.32)
42 | AD | 15 | |
---|---|---|---|
RGB | 66 | 173 | 21 |
HSL | 102° | 78.35% | 38.04% |
HSB/HSV | 102° | 87.86% | 67.84% |
CMYK | 61.85% | 0.00% | 87.86% |
32.16% |
HEX | 42 | AD | 15 |
Decimal | 66 | 173 | 21 |
Binary | 1000010 | 10101101 | 10101 |
Octal | 102 | 255 | 25 |
Examples of css and html codes for elements with #42AD15 color. Also use rgb(66,173,21) instead hex code.
.myTextColor { color: #42AD15; }
<p style="color:#42AD15">This sample text font color is #42AD15.</p>
This text font color is #42AD15.
.myBgColor { background-color: #42AD15; }
<div style="background-color:#42AD15">Inner text</div>
This div background color is #42AD15.
.myBorderColor { border: 1px solid #42AD15; }
<div style="border:3px solid #42AD15">Div</div>
This div border color is #42AD15.
.myOpacity80 { color: #42AD15; opacity: 0.8; }
<p style="color:#42AD15;opacity:0.8;">80%</p>
Text with #42AD15 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #42AD15;}
<p style="text-shadow: 3px 3px 1px #42AD15">Text here.</p>
This text has shadow with #42AD15 color.
.textShadow {text-shadow: 3px 3px 1px #42AD15, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #42AD15, 5px 5px 20px red">Text here.</p>
This text has shadow with #42AD15 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#42AD15, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#42AD15, Direction=45, Strength=4)">Text</p>
This text has shadow with #42AD15 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #42AD15; -webkit-box-shadow: 1px 1px 3px 2px #42AD15; box-shadow: 1px 1px 3px 2px #42AD15; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #42AD15; -webkit-box-shadow: 1px 1px 3px 2px #42AD15; box-shadow:1px 1px 3px 2px #42AD15;">
Div content here</div>
This text has color #42AD15 on black background.
This text has color #42AD15 on white background.
This text has black color on #42AD15 background.
This text has white color on #42AD15 background.