HEX: #42A551
RGB: (66,165,81)
#42A551 contains mainly green color. Web safe color of #42A551 is #339966 (or #396).
#42A551 color RGB value is (66,165,81).
RGB: (66,165,81) (26%,65%,32%)
R 66 of 255 = 26%
G 165 of 255 = 65%
B 81 of 255 = 32%
R + G + B ~ 41%. #42A551 is middle color (not dark and not light).
R + G + B =
66 + 165 + 81 = 312 (100%)
R 66 of 312 ~ 21.15%
G 165 of 312 ~ 52.88%
B 81 of 312 ~ 25.96%
#42A551 color CMYK value is (60,0,51,35).
CMYK: (60,0,51,35) C60M0Y51K35 (60%,0%,51%,35%) (0.60/0.00/0.51/0.35)
42 | A5 | 51 | |
---|---|---|---|
RGB | 66 | 165 | 81 |
HSL | 129° | 42.86% | 45.29% |
HSB/HSV | 129° | 60.00% | 64.71% |
CMYK | 60.00% | 0.00% | 50.91% |
35.29% |
HEX | 42 | A5 | 51 |
Decimal | 66 | 165 | 81 |
Binary | 1000010 | 10100101 | 1010001 |
Octal | 102 | 245 | 121 |
Examples of css and html codes for elements with #42A551 color. Also use rgb(66,165,81) instead hex code.
.myTextColor { color: #42A551; }
<p style="color:#42A551">This sample text font color is #42A551.</p>
This text font color is #42A551.
.myBgColor { background-color: #42A551; }
<div style="background-color:#42A551">Inner text</div>
This div background color is #42A551.
.myBorderColor { border: 1px solid #42A551; }
<div style="border:3px solid #42A551">Div</div>
This div border color is #42A551.
.myOpacity80 { color: #42A551; opacity: 0.8; }
<p style="color:#42A551;opacity:0.8;">80%</p>
Text with #42A551 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #42A551;}
<p style="text-shadow: 3px 3px 1px #42A551">Text here.</p>
This text has shadow with #42A551 color.
.textShadow {text-shadow: 3px 3px 1px #42A551, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #42A551, 5px 5px 20px red">Text here.</p>
This text has shadow with #42A551 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#42A551, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#42A551, Direction=45, Strength=4)">Text</p>
This text has shadow with #42A551 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #42A551; -webkit-box-shadow: 1px 1px 3px 2px #42A551; box-shadow: 1px 1px 3px 2px #42A551; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #42A551; -webkit-box-shadow: 1px 1px 3px 2px #42A551; box-shadow:1px 1px 3px 2px #42A551;">
Div content here</div>
This text has color #42A551 on black background.
This text has color #42A551 on white background.
This text has black color on #42A551 background.
This text has white color on #42A551 background.