HEX: #507948
RGB: (80,121,72)
#507948 contains red, green and blue colors in about the same proportion. Web safe color of #507948 is #666633 (or #663).
#507948 color RGB value is (80,121,72).
RGB: (80,121,72) (31%,47%,28%)
R 80 of 255 = 31%
G 121 of 255 = 47%
B 72 of 255 = 28%
R + G + B ~ 35%. #507948 is quite dark color.
R + G + B =
80 + 121 + 72 = 273 (100%)
R 80 of 273 ~ 29.3%
G 121 of 273 ~ 44.32%
B 72 of 273 ~ 26.37%
#507948 color CMYK value is (34,0,40,53).
CMYK: (34,0,40,53) C34M0Y40K53 (34%,0%,40%,53%) (0.34/0.00/0.40/0.53)
50 | 79 | 48 | |
---|---|---|---|
RGB | 80 | 121 | 72 |
HSL | 110° | 25.39% | 37.84% |
HSB/HSV | 110° | 40.50% | 47.45% |
CMYK | 33.88% | 0.00% | 40.50% |
52.55% |
HEX | 50 | 79 | 48 |
Decimal | 80 | 121 | 72 |
Binary | 1010000 | 1111001 | 1001000 |
Octal | 120 | 171 | 110 |
Examples of css and html codes for elements with #507948 color. Also use rgb(80,121,72) instead hex code.
.myTextColor { color: #507948; }
<p style="color:#507948">This sample text font color is #507948.</p>
This text font color is #507948.
.myBgColor { background-color: #507948; }
<div style="background-color:#507948">Inner text</div>
This div background color is #507948.
.myBorderColor { border: 1px solid #507948; }
<div style="border:3px solid #507948">Div</div>
This div border color is #507948.
.myOpacity80 { color: #507948; opacity: 0.8; }
<p style="color:#507948;opacity:0.8;">80%</p>
Text with #507948 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #507948;}
<p style="text-shadow: 3px 3px 1px #507948">Text here.</p>
This text has shadow with #507948 color.
.textShadow {text-shadow: 3px 3px 1px #507948, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #507948, 5px 5px 20px red">Text here.</p>
This text has shadow with #507948 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#507948, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#507948, Direction=45, Strength=4)">Text</p>
This text has shadow with #507948 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #507948; -webkit-box-shadow: 1px 1px 3px 2px #507948; box-shadow: 1px 1px 3px 2px #507948; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #507948; -webkit-box-shadow: 1px 1px 3px 2px #507948; box-shadow:1px 1px 3px 2px #507948;">
Div content here</div>
This text has color #507948 on black background.
This text has color #507948 on white background.
This text has black color on #507948 background.
This text has white color on #507948 background.