HEX: #008B42
RGB: (0,139,66)
#008B42 contains mainly green color. Web safe color of #008B42 is #009933 (or #093).
#008B42 color RGB value is (0,139,66).
RGB: (0,139,66) (0%,55%,26%)
R 0 of 255 = 0%
G 139 of 255 = 55%
B 66 of 255 = 26%
R + G + B ~ 27%. #008B42 is quite dark color.
R + G + B =
0 + 139 + 66 = 205 (100%)
R 0 of 205 ~ 0%
G 139 of 205 ~ 67.8%
B 66 of 205 ~ 32.2%
#008B42 color CMYK value is (100,0,53,45).
CMYK: (100,0,53,45) C100M0Y53K45 (100%,0%,53%,45%) (1.00/0.00/0.53/0.45)
00 | 8B | 42 | |
---|---|---|---|
RGB | 0 | 139 | 66 |
HSL | 148° | 100.00% | 27.25% |
HSB/HSV | 148° | 100.00% | 54.51% |
CMYK | 100.00% | 0.00% | 52.52% |
45.49% |
HEX | 00 | 8B | 42 |
Decimal | 0 | 139 | 66 |
Binary | 0 | 10001011 | 1000010 |
Octal | 0 | 213 | 102 |
Examples of css and html codes for elements with #008B42 color. Also use rgb(0,139,66) instead hex code.
.myTextColor { color: #008B42; }
<p style="color:#008B42">This sample text font color is #008B42.</p>
This text font color is #008B42.
.myBgColor { background-color: #008B42; }
<div style="background-color:#008B42">Inner text</div>
This div background color is #008B42.
.myBorderColor { border: 1px solid #008B42; }
<div style="border:3px solid #008B42">Div</div>
This div border color is #008B42.
.myOpacity80 { color: #008B42; opacity: 0.8; }
<p style="color:#008B42;opacity:0.8;">80%</p>
Text with #008B42 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #008B42;}
<p style="text-shadow: 3px 3px 1px #008B42">Text here.</p>
This text has shadow with #008B42 color.
.textShadow {text-shadow: 3px 3px 1px #008B42, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #008B42, 5px 5px 20px red">Text here.</p>
This text has shadow with #008B42 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#008B42, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#008B42, Direction=45, Strength=4)">Text</p>
This text has shadow with #008B42 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #008B42; -webkit-box-shadow: 1px 1px 3px 2px #008B42; box-shadow: 1px 1px 3px 2px #008B42; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #008B42; -webkit-box-shadow: 1px 1px 3px 2px #008B42; box-shadow:1px 1px 3px 2px #008B42;">
Div content here</div>
This text has color #008B42 on black background.
This text has color #008B42 on white background.
This text has black color on #008B42 background.
This text has white color on #008B42 background.