HEX: #509D25
RGB: (80,157,37)
#509D25 contains mainly green color. Web safe color of #509D25 is #669933 (or #693).
#509D25 color RGB value is (80,157,37).
RGB: (80,157,37) (31%,62%,15%)
R 80 of 255 = 31%
G 157 of 255 = 62%
B 37 of 255 = 15%
R + G + B ~ 36%. #509D25 is quite dark color.
R + G + B =
80 + 157 + 37 = 274 (100%)
R 80 of 274 ~ 29.2%
G 157 of 274 ~ 57.3%
B 37 of 274 ~ 13.5%
#509D25 color CMYK value is (49,0,76,38).
CMYK: (49,0,76,38) C49M0Y76K38 (49%,0%,76%,38%) (0.49/0.00/0.76/0.38)
50 | 9D | 25 | |
---|---|---|---|
RGB | 80 | 157 | 37 |
HSL | 99° | 61.86% | 38.04% |
HSB/HSV | 99° | 76.43% | 61.57% |
CMYK | 49.04% | 0.00% | 76.43% |
38.43% |
HEX | 50 | 9D | 25 |
Decimal | 80 | 157 | 37 |
Binary | 1010000 | 10011101 | 100101 |
Octal | 120 | 235 | 45 |
Examples of css and html codes for elements with #509D25 color. Also use rgb(80,157,37) instead hex code.
.myTextColor { color: #509D25; }
<p style="color:#509D25">This sample text font color is #509D25.</p>
This text font color is #509D25.
.myBgColor { background-color: #509D25; }
<div style="background-color:#509D25">Inner text</div>
This div background color is #509D25.
.myBorderColor { border: 1px solid #509D25; }
<div style="border:3px solid #509D25">Div</div>
This div border color is #509D25.
.myOpacity80 { color: #509D25; opacity: 0.8; }
<p style="color:#509D25;opacity:0.8;">80%</p>
Text with #509D25 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #509D25;}
<p style="text-shadow: 3px 3px 1px #509D25">Text here.</p>
This text has shadow with #509D25 color.
.textShadow {text-shadow: 3px 3px 1px #509D25, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #509D25, 5px 5px 20px red">Text here.</p>
This text has shadow with #509D25 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#509D25, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#509D25, Direction=45, Strength=4)">Text</p>
This text has shadow with #509D25 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #509D25; -webkit-box-shadow: 1px 1px 3px 2px #509D25; box-shadow: 1px 1px 3px 2px #509D25; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #509D25; -webkit-box-shadow: 1px 1px 3px 2px #509D25; box-shadow:1px 1px 3px 2px #509D25;">
Div content here</div>
This text has color #509D25 on black background.
This text has color #509D25 on white background.
This text has black color on #509D25 background.
This text has white color on #509D25 background.