HEX: #509856
RGB: (80,152,86)
#509856 contains mainly green color. Web safe color of #509856 is #669966 (or #696).
#509856 color RGB value is (80,152,86).
RGB: (80,152,86) (31%,60%,34%)
R 80 of 255 = 31%
G 152 of 255 = 60%
B 86 of 255 = 34%
R + G + B ~ 42%. #509856 is middle color (not dark and not light).
R + G + B =
80 + 152 + 86 = 318 (100%)
R 80 of 318 ~ 25.16%
G 152 of 318 ~ 47.8%
B 86 of 318 ~ 27.04%
#509856 color CMYK value is (47,0,43,40).
CMYK: (47,0,43,40) C47M0Y43K40 (47%,0%,43%,40%) (0.47/0.00/0.43/0.40)
50 | 98 | 56 | |
---|---|---|---|
RGB | 80 | 152 | 86 |
HSL | 125° | 31.03% | 45.49% |
HSB/HSV | 125° | 47.37% | 59.61% |
CMYK | 47.37% | 0.00% | 43.42% |
40.39% |
HEX | 50 | 98 | 56 |
Decimal | 80 | 152 | 86 |
Binary | 1010000 | 10011000 | 1010110 |
Octal | 120 | 230 | 126 |
Examples of css and html codes for elements with #509856 color. Also use rgb(80,152,86) instead hex code.
.myTextColor { color: #509856; }
<p style="color:#509856">This sample text font color is #509856.</p>
This text font color is #509856.
.myBgColor { background-color: #509856; }
<div style="background-color:#509856">Inner text</div>
This div background color is #509856.
.myBorderColor { border: 1px solid #509856; }
<div style="border:3px solid #509856">Div</div>
This div border color is #509856.
.myOpacity80 { color: #509856; opacity: 0.8; }
<p style="color:#509856;opacity:0.8;">80%</p>
Text with #509856 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #509856;}
<p style="text-shadow: 3px 3px 1px #509856">Text here.</p>
This text has shadow with #509856 color.
.textShadow {text-shadow: 3px 3px 1px #509856, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #509856, 5px 5px 20px red">Text here.</p>
This text has shadow with #509856 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#509856, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#509856, Direction=45, Strength=4)">Text</p>
This text has shadow with #509856 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #509856; -webkit-box-shadow: 1px 1px 3px 2px #509856; box-shadow: 1px 1px 3px 2px #509856; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #509856; -webkit-box-shadow: 1px 1px 3px 2px #509856; box-shadow:1px 1px 3px 2px #509856;">
Div content here</div>
This text has color #509856 on black background.
This text has color #509856 on white background.
This text has black color on #509856 background.
This text has white color on #509856 background.