HEX: #42D31E
RGB: (66,211,30)
#42D31E contains mainly green color. Web safe color of #42D31E is #33CC33 (or #3C3).
#42D31E color RGB value is (66,211,30).
RGB: (66,211,30) (26%,83%,12%)
R 66 of 255 = 26%
G 211 of 255 = 83%
B 30 of 255 = 12%
R + G + B ~ 40%. #42D31E is middle color (not dark and not light).
R + G + B =
66 + 211 + 30 = 307 (100%)
R 66 of 307 ~ 21.5%
G 211 of 307 ~ 68.73%
B 30 of 307 ~ 9.77%
#42D31E color CMYK value is (69,0,86,17).
CMYK: (69,0,86,17) C69M0Y86K17 (69%,0%,86%,17%) (0.69/0.00/0.86/0.17)
42 | D3 | 1E | |
---|---|---|---|
RGB | 66 | 211 | 30 |
HSL | 108° | 75.10% | 47.25% |
HSB/HSV | 108° | 85.78% | 82.75% |
CMYK | 68.72% | 0.00% | 85.78% |
17.25% |
HEX | 42 | D3 | 1E |
Decimal | 66 | 211 | 30 |
Binary | 1000010 | 11010011 | 11110 |
Octal | 102 | 323 | 36 |
Examples of css and html codes for elements with #42D31E color. Also use rgb(66,211,30) instead hex code.
.myTextColor { color: #42D31E; }
<p style="color:#42D31E">This sample text font color is #42D31E.</p>
This text font color is #42D31E.
.myBgColor { background-color: #42D31E; }
<div style="background-color:#42D31E">Inner text</div>
This div background color is #42D31E.
.myBorderColor { border: 1px solid #42D31E; }
<div style="border:3px solid #42D31E">Div</div>
This div border color is #42D31E.
.myOpacity80 { color: #42D31E; opacity: 0.8; }
<p style="color:#42D31E;opacity:0.8;">80%</p>
Text with #42D31E color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #42D31E;}
<p style="text-shadow: 3px 3px 1px #42D31E">Text here.</p>
This text has shadow with #42D31E color.
.textShadow {text-shadow: 3px 3px 1px #42D31E, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #42D31E, 5px 5px 20px red">Text here.</p>
This text has shadow with #42D31E primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#42D31E, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#42D31E, Direction=45, Strength=4)">Text</p>
This text has shadow with #42D31E and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #42D31E; -webkit-box-shadow: 1px 1px 3px 2px #42D31E; box-shadow: 1px 1px 3px 2px #42D31E; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #42D31E; -webkit-box-shadow: 1px 1px 3px 2px #42D31E; box-shadow:1px 1px 3px 2px #42D31E;">
Div content here</div>
This text has color #42D31E on black background.
This text has color #42D31E on white background.
This text has black color on #42D31E background.
This text has white color on #42D31E background.