HEX: #42B240
RGB: (66,178,64)
#42B240 contains mainly green color. Web safe color of #42B240 is #339933 (or #393).
#42B240 color RGB value is (66,178,64).
RGB: (66,178,64) (26%,70%,25%)
R 66 of 255 = 26%
G 178 of 255 = 70%
B 64 of 255 = 25%
R + G + B ~ 40%. #42B240 is middle color (not dark and not light).
R + G + B =
66 + 178 + 64 = 308 (100%)
R 66 of 308 ~ 21.43%
G 178 of 308 ~ 57.79%
B 64 of 308 ~ 20.78%
#42B240 color CMYK value is (63,0,64,30).
CMYK: (63,0,64,30) C63M0Y64K30 (63%,0%,64%,30%) (0.63/0.00/0.64/0.30)
42 | B2 | 40 | |
---|---|---|---|
RGB | 66 | 178 | 64 |
HSL | 119° | 47.11% | 47.45% |
HSB/HSV | 119° | 64.04% | 69.80% |
CMYK | 62.92% | 0.00% | 64.04% |
30.20% |
HEX | 42 | B2 | 40 |
Decimal | 66 | 178 | 64 |
Binary | 1000010 | 10110010 | 1000000 |
Octal | 102 | 262 | 100 |
Examples of css and html codes for elements with #42B240 color. Also use rgb(66,178,64) instead hex code.
.myTextColor { color: #42B240; }
<p style="color:#42B240">This sample text font color is #42B240.</p>
This text font color is #42B240.
.myBgColor { background-color: #42B240; }
<div style="background-color:#42B240">Inner text</div>
This div background color is #42B240.
.myBorderColor { border: 1px solid #42B240; }
<div style="border:3px solid #42B240">Div</div>
This div border color is #42B240.
.myOpacity80 { color: #42B240; opacity: 0.8; }
<p style="color:#42B240;opacity:0.8;">80%</p>
Text with #42B240 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #42B240;}
<p style="text-shadow: 3px 3px 1px #42B240">Text here.</p>
This text has shadow with #42B240 color.
.textShadow {text-shadow: 3px 3px 1px #42B240, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #42B240, 5px 5px 20px red">Text here.</p>
This text has shadow with #42B240 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#42B240, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#42B240, Direction=45, Strength=4)">Text</p>
This text has shadow with #42B240 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #42B240; -webkit-box-shadow: 1px 1px 3px 2px #42B240; box-shadow: 1px 1px 3px 2px #42B240; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #42B240; -webkit-box-shadow: 1px 1px 3px 2px #42B240; box-shadow:1px 1px 3px 2px #42B240;">
Div content here</div>
This text has color #42B240 on black background.
This text has color #42B240 on white background.
This text has black color on #42B240 background.
This text has white color on #42B240 background.