HEX: #508B18
RGB: (80,139,24)
#508B18 contains mainly red and green colors. Web safe color of #508B18 is #669900 (or #690).
#508B18 color RGB value is (80,139,24).
RGB: (80,139,24) (31%,55%,9%)
R 80 of 255 = 31%
G 139 of 255 = 55%
B 24 of 255 = 9%
R + G + B ~ 32%. #508B18 is quite dark color.
R + G + B =
80 + 139 + 24 = 243 (100%)
R 80 of 243 ~ 32.92%
G 139 of 243 ~ 57.2%
B 24 of 243 ~ 9.88%
#508B18 color CMYK value is (42,0,83,45).
CMYK: (42,0,83,45) C42M0Y83K45 (42%,0%,83%,45%) (0.42/0.00/0.83/0.45)
50 | 8B | 18 | |
---|---|---|---|
RGB | 80 | 139 | 24 |
HSL | 91° | 70.55% | 31.96% |
HSB/HSV | 91° | 82.73% | 54.51% |
CMYK | 42.45% | 0.00% | 82.73% |
45.49% |
HEX | 50 | 8B | 18 |
Decimal | 80 | 139 | 24 |
Binary | 1010000 | 10001011 | 11000 |
Octal | 120 | 213 | 30 |
Examples of css and html codes for elements with #508B18 color. Also use rgb(80,139,24) instead hex code.
.myTextColor { color: #508B18; }
<p style="color:#508B18">This sample text font color is #508B18.</p>
This text font color is #508B18.
.myBgColor { background-color: #508B18; }
<div style="background-color:#508B18">Inner text</div>
This div background color is #508B18.
.myBorderColor { border: 1px solid #508B18; }
<div style="border:3px solid #508B18">Div</div>
This div border color is #508B18.
.myOpacity80 { color: #508B18; opacity: 0.8; }
<p style="color:#508B18;opacity:0.8;">80%</p>
Text with #508B18 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #508B18;}
<p style="text-shadow: 3px 3px 1px #508B18">Text here.</p>
This text has shadow with #508B18 color.
.textShadow {text-shadow: 3px 3px 1px #508B18, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #508B18, 5px 5px 20px red">Text here.</p>
This text has shadow with #508B18 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#508B18, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#508B18, Direction=45, Strength=4)">Text</p>
This text has shadow with #508B18 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #508B18; -webkit-box-shadow: 1px 1px 3px 2px #508B18; box-shadow: 1px 1px 3px 2px #508B18; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #508B18; -webkit-box-shadow: 1px 1px 3px 2px #508B18; box-shadow:1px 1px 3px 2px #508B18;">
Div content here</div>
This text has color #508B18 on black background.
This text has color #508B18 on white background.
This text has black color on #508B18 background.
This text has white color on #508B18 background.