HEX: #508E39
RGB: (80,142,57)
#508E39 contains mainly green color. Web safe color of #508E39 is #669933 (or #693).
#508E39 color RGB value is (80,142,57).
RGB: (80,142,57) (31%,56%,22%)
R 80 of 255 = 31%
G 142 of 255 = 56%
B 57 of 255 = 22%
R + G + B ~ 36%. #508E39 is quite dark color.
R + G + B =
80 + 142 + 57 = 279 (100%)
R 80 of 279 ~ 28.67%
G 142 of 279 ~ 50.9%
B 57 of 279 ~ 20.43%
#508E39 color CMYK value is (44,0,60,44).
CMYK: (44,0,60,44) C44M0Y60K44 (44%,0%,60%,44%) (0.44/0.00/0.60/0.44)
50 | 8E | 39 | |
---|---|---|---|
RGB | 80 | 142 | 57 |
HSL | 104° | 42.71% | 39.02% |
HSB/HSV | 104° | 59.86% | 55.69% |
CMYK | 43.66% | 0.00% | 59.86% |
44.31% |
HEX | 50 | 8E | 39 |
Decimal | 80 | 142 | 57 |
Binary | 1010000 | 10001110 | 111001 |
Octal | 120 | 216 | 71 |
Examples of css and html codes for elements with #508E39 color. Also use rgb(80,142,57) instead hex code.
.myTextColor { color: #508E39; }
<p style="color:#508E39">This sample text font color is #508E39.</p>
This text font color is #508E39.
.myBgColor { background-color: #508E39; }
<div style="background-color:#508E39">Inner text</div>
This div background color is #508E39.
.myBorderColor { border: 1px solid #508E39; }
<div style="border:3px solid #508E39">Div</div>
This div border color is #508E39.
.myOpacity80 { color: #508E39; opacity: 0.8; }
<p style="color:#508E39;opacity:0.8;">80%</p>
Text with #508E39 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #508E39;}
<p style="text-shadow: 3px 3px 1px #508E39">Text here.</p>
This text has shadow with #508E39 color.
.textShadow {text-shadow: 3px 3px 1px #508E39, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #508E39, 5px 5px 20px red">Text here.</p>
This text has shadow with #508E39 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#508E39, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#508E39, Direction=45, Strength=4)">Text</p>
This text has shadow with #508E39 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #508E39; -webkit-box-shadow: 1px 1px 3px 2px #508E39; box-shadow: 1px 1px 3px 2px #508E39; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #508E39; -webkit-box-shadow: 1px 1px 3px 2px #508E39; box-shadow:1px 1px 3px 2px #508E39;">
Div content here</div>
This text has color #508E39 on black background.
This text has color #508E39 on white background.
This text has black color on #508E39 background.
This text has white color on #508E39 background.