HEX: #42D972
RGB: (66,217,114)
#42D972 contains mainly green color. Web safe color of #42D972 is #33CC66 (or #3C6).
#42D972 color RGB value is (66,217,114).
RGB: (66,217,114) (26%,85%,45%)
R 66 of 255 = 26%
G 217 of 255 = 85%
B 114 of 255 = 45%
R + G + B ~ 52%. #42D972 is middle color (not dark and not light).
R + G + B =
66 + 217 + 114 = 397 (100%)
R 66 of 397 ~ 16.62%
G 217 of 397 ~ 54.66%
B 114 of 397 ~ 28.72%
#42D972 color CMYK value is (70,0,47,15).
CMYK: (70,0,47,15) C70M0Y47K15 (70%,0%,47%,15%) (0.70/0.00/0.47/0.15)
42 | D9 | 72 | |
---|---|---|---|
RGB | 66 | 217 | 114 |
HSL | 139° | 66.52% | 55.49% |
HSB/HSV | 139° | 69.59% | 85.10% |
CMYK | 69.59% | 0.00% | 47.47% |
14.90% |
HEX | 42 | D9 | 72 |
Decimal | 66 | 217 | 114 |
Binary | 1000010 | 11011001 | 1110010 |
Octal | 102 | 331 | 162 |
Examples of css and html codes for elements with #42D972 color. Also use rgb(66,217,114) instead hex code.
.myTextColor { color: #42D972; }
<p style="color:#42D972">This sample text font color is #42D972.</p>
This text font color is #42D972.
.myBgColor { background-color: #42D972; }
<div style="background-color:#42D972">Inner text</div>
This div background color is #42D972.
.myBorderColor { border: 1px solid #42D972; }
<div style="border:3px solid #42D972">Div</div>
This div border color is #42D972.
.myOpacity80 { color: #42D972; opacity: 0.8; }
<p style="color:#42D972;opacity:0.8;">80%</p>
Text with #42D972 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #42D972;}
<p style="text-shadow: 3px 3px 1px #42D972">Text here.</p>
This text has shadow with #42D972 color.
.textShadow {text-shadow: 3px 3px 1px #42D972, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #42D972, 5px 5px 20px red">Text here.</p>
This text has shadow with #42D972 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#42D972, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#42D972, Direction=45, Strength=4)">Text</p>
This text has shadow with #42D972 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #42D972; -webkit-box-shadow: 1px 1px 3px 2px #42D972; box-shadow: 1px 1px 3px 2px #42D972; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #42D972; -webkit-box-shadow: 1px 1px 3px 2px #42D972; box-shadow:1px 1px 3px 2px #42D972;">
Div content here</div>
This text has color #42D972 on black background.
This text has color #42D972 on white background.
This text has black color on #42D972 background.
This text has white color on #42D972 background.