HEX: #508816
RGB: (80,136,22)
#508816 contains mainly red and green colors. Web safe color of #508816 is #669900 (or #690).
#508816 color RGB value is (80,136,22).
RGB: (80,136,22) (31%,53%,9%)
R 80 of 255 = 31%
G 136 of 255 = 53%
B 22 of 255 = 9%
R + G + B ~ 31%. #508816 is quite dark color.
R + G + B =
80 + 136 + 22 = 238 (100%)
R 80 of 238 ~ 33.61%
G 136 of 238 ~ 57.14%
B 22 of 238 ~ 9.24%
#508816 color CMYK value is (41,0,84,47).
CMYK: (41,0,84,47) C41M0Y84K47 (41%,0%,84%,47%) (0.41/0.00/0.84/0.47)
50 | 88 | 16 | |
---|---|---|---|
RGB | 80 | 136 | 22 |
HSL | 89° | 72.15% | 30.98% |
HSB/HSV | 89° | 83.82% | 53.33% |
CMYK | 41.18% | 0.00% | 83.82% |
46.67% |
HEX | 50 | 88 | 16 |
Decimal | 80 | 136 | 22 |
Binary | 1010000 | 10001000 | 10110 |
Octal | 120 | 210 | 26 |
Examples of css and html codes for elements with #508816 color. Also use rgb(80,136,22) instead hex code.
.myTextColor { color: #508816; }
<p style="color:#508816">This sample text font color is #508816.</p>
This text font color is #508816.
.myBgColor { background-color: #508816; }
<div style="background-color:#508816">Inner text</div>
This div background color is #508816.
.myBorderColor { border: 1px solid #508816; }
<div style="border:3px solid #508816">Div</div>
This div border color is #508816.
.myOpacity80 { color: #508816; opacity: 0.8; }
<p style="color:#508816;opacity:0.8;">80%</p>
Text with #508816 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #508816;}
<p style="text-shadow: 3px 3px 1px #508816">Text here.</p>
This text has shadow with #508816 color.
.textShadow {text-shadow: 3px 3px 1px #508816, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #508816, 5px 5px 20px red">Text here.</p>
This text has shadow with #508816 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#508816, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#508816, Direction=45, Strength=4)">Text</p>
This text has shadow with #508816 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #508816; -webkit-box-shadow: 1px 1px 3px 2px #508816; box-shadow: 1px 1px 3px 2px #508816; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #508816; -webkit-box-shadow: 1px 1px 3px 2px #508816; box-shadow:1px 1px 3px 2px #508816;">
Div content here</div>
This text has color #508816 on black background.
This text has color #508816 on white background.
This text has black color on #508816 background.
This text has white color on #508816 background.