HEX: #42A342
RGB: (66,163,66)
#42A342 contains mainly green color. Web safe color of #42A342 is #339933 (or #393).
#42A342 color RGB value is (66,163,66).
RGB: (66,163,66) (26%,64%,26%)
R 66 of 255 = 26%
G 163 of 255 = 64%
B 66 of 255 = 26%
R + G + B ~ 39%. #42A342 is quite dark color.
R + G + B =
66 + 163 + 66 = 295 (100%)
R 66 of 295 ~ 22.37%
G 163 of 295 ~ 55.25%
B 66 of 295 ~ 22.37%
#42A342 color CMYK value is (60,0,60,36).
CMYK: (60,0,60,36) C60M0Y60K36 (60%,0%,60%,36%) (0.60/0.00/0.60/0.36)
42 | A3 | 42 | |
---|---|---|---|
RGB | 66 | 163 | 66 |
HSL | 120° | 42.36% | 44.90% |
HSB/HSV | 120° | 59.51% | 63.92% |
CMYK | 59.51% | 0.00% | 59.51% |
36.08% |
HEX | 42 | A3 | 42 |
Decimal | 66 | 163 | 66 |
Binary | 1000010 | 10100011 | 1000010 |
Octal | 102 | 243 | 102 |
Examples of css and html codes for elements with #42A342 color. Also use rgb(66,163,66) instead hex code.
.myTextColor { color: #42A342; }
<p style="color:#42A342">This sample text font color is #42A342.</p>
This text font color is #42A342.
.myBgColor { background-color: #42A342; }
<div style="background-color:#42A342">Inner text</div>
This div background color is #42A342.
.myBorderColor { border: 1px solid #42A342; }
<div style="border:3px solid #42A342">Div</div>
This div border color is #42A342.
.myOpacity80 { color: #42A342; opacity: 0.8; }
<p style="color:#42A342;opacity:0.8;">80%</p>
Text with #42A342 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #42A342;}
<p style="text-shadow: 3px 3px 1px #42A342">Text here.</p>
This text has shadow with #42A342 color.
.textShadow {text-shadow: 3px 3px 1px #42A342, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #42A342, 5px 5px 20px red">Text here.</p>
This text has shadow with #42A342 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#42A342, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#42A342, Direction=45, Strength=4)">Text</p>
This text has shadow with #42A342 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #42A342; -webkit-box-shadow: 1px 1px 3px 2px #42A342; box-shadow: 1px 1px 3px 2px #42A342; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #42A342; -webkit-box-shadow: 1px 1px 3px 2px #42A342; box-shadow:1px 1px 3px 2px #42A342;">
Div content here</div>
This text has color #42A342 on black background.
This text has color #42A342 on white background.
This text has black color on #42A342 background.
This text has white color on #42A342 background.