HEX: #509D4E
RGB: (80,157,78)
#509D4E contains mainly green color. Web safe color of #509D4E is #669966 (or #696).
#509D4E color RGB value is (80,157,78).
RGB: (80,157,78) (31%,62%,31%)
R 80 of 255 = 31%
G 157 of 255 = 62%
B 78 of 255 = 31%
R + G + B ~ 41%. #509D4E is middle color (not dark and not light).
R + G + B =
80 + 157 + 78 = 315 (100%)
R 80 of 315 ~ 25.4%
G 157 of 315 ~ 49.84%
B 78 of 315 ~ 24.76%
#509D4E color CMYK value is (49,0,50,38).
CMYK: (49,0,50,38) C49M0Y50K38 (49%,0%,50%,38%) (0.49/0.00/0.50/0.38)
50 | 9D | 4E | |
---|---|---|---|
RGB | 80 | 157 | 78 |
HSL | 118° | 33.62% | 46.08% |
HSB/HSV | 118° | 50.32% | 61.57% |
CMYK | 49.04% | 0.00% | 50.32% |
38.43% |
HEX | 50 | 9D | 4E |
Decimal | 80 | 157 | 78 |
Binary | 1010000 | 10011101 | 1001110 |
Octal | 120 | 235 | 116 |
Examples of css and html codes for elements with #509D4E color. Also use rgb(80,157,78) instead hex code.
.myTextColor { color: #509D4E; }
<p style="color:#509D4E">This sample text font color is #509D4E.</p>
This text font color is #509D4E.
.myBgColor { background-color: #509D4E; }
<div style="background-color:#509D4E">Inner text</div>
This div background color is #509D4E.
.myBorderColor { border: 1px solid #509D4E; }
<div style="border:3px solid #509D4E">Div</div>
This div border color is #509D4E.
.myOpacity80 { color: #509D4E; opacity: 0.8; }
<p style="color:#509D4E;opacity:0.8;">80%</p>
Text with #509D4E color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #509D4E;}
<p style="text-shadow: 3px 3px 1px #509D4E">Text here.</p>
This text has shadow with #509D4E color.
.textShadow {text-shadow: 3px 3px 1px #509D4E, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #509D4E, 5px 5px 20px red">Text here.</p>
This text has shadow with #509D4E primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#509D4E, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#509D4E, Direction=45, Strength=4)">Text</p>
This text has shadow with #509D4E and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #509D4E; -webkit-box-shadow: 1px 1px 3px 2px #509D4E; box-shadow: 1px 1px 3px 2px #509D4E; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #509D4E; -webkit-box-shadow: 1px 1px 3px 2px #509D4E; box-shadow:1px 1px 3px 2px #509D4E;">
Div content here</div>
This text has color #509D4E on black background.
This text has color #509D4E on white background.
This text has black color on #509D4E background.
This text has white color on #509D4E background.