HEX: #509806
RGB: (80,152,6)
#509806 contains mainly green color. Web safe color of #509806 is #669900 (or #690).
#509806 color RGB value is (80,152,6).
RGB: (80,152,6) (31%,60%,2%)
R 80 of 255 = 31%
G 152 of 255 = 60%
B 6 of 255 = 2%
R + G + B ~ 31%. #509806 is quite dark color.
R + G + B =
80 + 152 + 6 = 238 (100%)
R 80 of 238 ~ 33.61%
G 152 of 238 ~ 63.87%
B 6 of 238 ~ 2.52%
#509806 color CMYK value is (47,0,96,40).
CMYK: (47,0,96,40) C47M0Y96K40 (47%,0%,96%,40%) (0.47/0.00/0.96/0.40)
50 | 98 | 06 | |
---|---|---|---|
RGB | 80 | 152 | 6 |
HSL | 90° | 92.41% | 30.98% |
HSB/HSV | 90° | 96.05% | 59.61% |
CMYK | 47.37% | 0.00% | 96.05% |
40.39% |
HEX | 50 | 98 | 06 |
Decimal | 80 | 152 | 6 |
Binary | 1010000 | 10011000 | 110 |
Octal | 120 | 230 | 6 |
Examples of css and html codes for elements with #509806 color. Also use rgb(80,152,6) instead hex code.
.myTextColor { color: #509806; }
<p style="color:#509806">This sample text font color is #509806.</p>
This text font color is #509806.
.myBgColor { background-color: #509806; }
<div style="background-color:#509806">Inner text</div>
This div background color is #509806.
.myBorderColor { border: 1px solid #509806; }
<div style="border:3px solid #509806">Div</div>
This div border color is #509806.
.myOpacity80 { color: #509806; opacity: 0.8; }
<p style="color:#509806;opacity:0.8;">80%</p>
Text with #509806 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #509806;}
<p style="text-shadow: 3px 3px 1px #509806">Text here.</p>
This text has shadow with #509806 color.
.textShadow {text-shadow: 3px 3px 1px #509806, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #509806, 5px 5px 20px red">Text here.</p>
This text has shadow with #509806 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#509806, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#509806, Direction=45, Strength=4)">Text</p>
This text has shadow with #509806 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #509806; -webkit-box-shadow: 1px 1px 3px 2px #509806; box-shadow: 1px 1px 3px 2px #509806; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #509806; -webkit-box-shadow: 1px 1px 3px 2px #509806; box-shadow:1px 1px 3px 2px #509806;">
Div content here</div>
This text has color #509806 on black background.
This text has color #509806 on white background.
This text has black color on #509806 background.
This text has white color on #509806 background.