HEX: #42856B
RGB: (66,133,107)
#42856B contains mainly green and blue colors. Web safe color of #42856B is #339966 (or #396).
#42856B color RGB value is (66,133,107).
RGB: (66,133,107) (26%,52%,42%)
R 66 of 255 = 26%
G 133 of 255 = 52%
B 107 of 255 = 42%
R + G + B ~ 40%. #42856B is middle color (not dark and not light).
R + G + B =
66 + 133 + 107 = 306 (100%)
R 66 of 306 ~ 21.57%
G 133 of 306 ~ 43.46%
B 107 of 306 ~ 34.97%
#42856B color CMYK value is (50,0,20,48).
CMYK: (50,0,20,48) C50M0Y20K48 (50%,0%,20%,48%) (0.50/0.00/0.20/0.48)
42 | 85 | 6B | |
---|---|---|---|
RGB | 66 | 133 | 107 |
HSL | 157° | 33.67% | 39.02% |
HSB/HSV | 157° | 50.38% | 52.16% |
CMYK | 50.38% | 0.00% | 19.55% |
47.84% |
HEX | 42 | 85 | 6B |
Decimal | 66 | 133 | 107 |
Binary | 1000010 | 10000101 | 1101011 |
Octal | 102 | 205 | 153 |
Examples of css and html codes for elements with #42856B color. Also use rgb(66,133,107) instead hex code.
.myTextColor { color: #42856B; }
<p style="color:#42856B">This sample text font color is #42856B.</p>
This text font color is #42856B.
.myBgColor { background-color: #42856B; }
<div style="background-color:#42856B">Inner text</div>
This div background color is #42856B.
.myBorderColor { border: 1px solid #42856B; }
<div style="border:3px solid #42856B">Div</div>
This div border color is #42856B.
.myOpacity80 { color: #42856B; opacity: 0.8; }
<p style="color:#42856B;opacity:0.8;">80%</p>
Text with #42856B color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #42856B;}
<p style="text-shadow: 3px 3px 1px #42856B">Text here.</p>
This text has shadow with #42856B color.
.textShadow {text-shadow: 3px 3px 1px #42856B, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #42856B, 5px 5px 20px red">Text here.</p>
This text has shadow with #42856B primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#42856B, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#42856B, Direction=45, Strength=4)">Text</p>
This text has shadow with #42856B and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #42856B; -webkit-box-shadow: 1px 1px 3px 2px #42856B; box-shadow: 1px 1px 3px 2px #42856B; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #42856B; -webkit-box-shadow: 1px 1px 3px 2px #42856B; box-shadow:1px 1px 3px 2px #42856B;">
Div content here</div>
This text has color #42856B on black background.
This text has color #42856B on white background.
This text has black color on #42856B background.
This text has white color on #42856B background.