HEX: #42B040
RGB: (66,176,64)
#42B040 contains mainly green color. Web safe color of #42B040 is #339933 (or #393).
#42B040 color RGB value is (66,176,64).
RGB: (66,176,64) (26%,69%,25%)
R 66 of 255 = 26%
G 176 of 255 = 69%
B 64 of 255 = 25%
R + G + B ~ 40%. #42B040 is middle color (not dark and not light).
R + G + B =
66 + 176 + 64 = 306 (100%)
R 66 of 306 ~ 21.57%
G 176 of 306 ~ 57.52%
B 64 of 306 ~ 20.92%
#42B040 color CMYK value is (63,0,64,31).
CMYK: (63,0,64,31) C63M0Y64K31 (63%,0%,64%,31%) (0.63/0.00/0.64/0.31)
42 | B0 | 40 | |
---|---|---|---|
RGB | 66 | 176 | 64 |
HSL | 119° | 46.67% | 47.06% |
HSB/HSV | 119° | 63.64% | 69.02% |
CMYK | 62.50% | 0.00% | 63.64% |
30.98% |
HEX | 42 | B0 | 40 |
Decimal | 66 | 176 | 64 |
Binary | 1000010 | 10110000 | 1000000 |
Octal | 102 | 260 | 100 |
Examples of css and html codes for elements with #42B040 color. Also use rgb(66,176,64) instead hex code.
.myTextColor { color: #42B040; }
<p style="color:#42B040">This sample text font color is #42B040.</p>
This text font color is #42B040.
.myBgColor { background-color: #42B040; }
<div style="background-color:#42B040">Inner text</div>
This div background color is #42B040.
.myBorderColor { border: 1px solid #42B040; }
<div style="border:3px solid #42B040">Div</div>
This div border color is #42B040.
.myOpacity80 { color: #42B040; opacity: 0.8; }
<p style="color:#42B040;opacity:0.8;">80%</p>
Text with #42B040 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #42B040;}
<p style="text-shadow: 3px 3px 1px #42B040">Text here.</p>
This text has shadow with #42B040 color.
.textShadow {text-shadow: 3px 3px 1px #42B040, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #42B040, 5px 5px 20px red">Text here.</p>
This text has shadow with #42B040 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#42B040, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#42B040, Direction=45, Strength=4)">Text</p>
This text has shadow with #42B040 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #42B040; -webkit-box-shadow: 1px 1px 3px 2px #42B040; box-shadow: 1px 1px 3px 2px #42B040; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #42B040; -webkit-box-shadow: 1px 1px 3px 2px #42B040; box-shadow:1px 1px 3px 2px #42B040;">
Div content here</div>
This text has color #42B040 on black background.
This text has color #42B040 on white background.
This text has black color on #42B040 background.
This text has white color on #42B040 background.