HEX: #42A745
RGB: (66,167,69)
#42A745 contains mainly green color. Web safe color of #42A745 is #339933 (or #393).
#42A745 color RGB value is (66,167,69).
RGB: (66,167,69) (26%,65%,27%)
R 66 of 255 = 26%
G 167 of 255 = 65%
B 69 of 255 = 27%
R + G + B ~ 39%. #42A745 is quite dark color.
R + G + B =
66 + 167 + 69 = 302 (100%)
R 66 of 302 ~ 21.85%
G 167 of 302 ~ 55.3%
B 69 of 302 ~ 22.85%
#42A745 color CMYK value is (60,0,59,35).
CMYK: (60,0,59,35) C60M0Y59K35 (60%,0%,59%,35%) (0.60/0.00/0.59/0.35)
42 | A7 | 45 | |
---|---|---|---|
RGB | 66 | 167 | 69 |
HSL | 122° | 43.35% | 45.69% |
HSB/HSV | 122° | 60.48% | 65.49% |
CMYK | 60.48% | 0.00% | 58.68% |
34.51% |
HEX | 42 | A7 | 45 |
Decimal | 66 | 167 | 69 |
Binary | 1000010 | 10100111 | 1000101 |
Octal | 102 | 247 | 105 |
Examples of css and html codes for elements with #42A745 color. Also use rgb(66,167,69) instead hex code.
.myTextColor { color: #42A745; }
<p style="color:#42A745">This sample text font color is #42A745.</p>
This text font color is #42A745.
.myBgColor { background-color: #42A745; }
<div style="background-color:#42A745">Inner text</div>
This div background color is #42A745.
.myBorderColor { border: 1px solid #42A745; }
<div style="border:3px solid #42A745">Div</div>
This div border color is #42A745.
.myOpacity80 { color: #42A745; opacity: 0.8; }
<p style="color:#42A745;opacity:0.8;">80%</p>
Text with #42A745 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #42A745;}
<p style="text-shadow: 3px 3px 1px #42A745">Text here.</p>
This text has shadow with #42A745 color.
.textShadow {text-shadow: 3px 3px 1px #42A745, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #42A745, 5px 5px 20px red">Text here.</p>
This text has shadow with #42A745 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#42A745, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#42A745, Direction=45, Strength=4)">Text</p>
This text has shadow with #42A745 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #42A745; -webkit-box-shadow: 1px 1px 3px 2px #42A745; box-shadow: 1px 1px 3px 2px #42A745; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #42A745; -webkit-box-shadow: 1px 1px 3px 2px #42A745; box-shadow:1px 1px 3px 2px #42A745;">
Div content here</div>
This text has color #42A745 on black background.
This text has color #42A745 on white background.
This text has black color on #42A745 background.
This text has white color on #42A745 background.