HEX: #517227
RGB: (81,114,39)
#517227 contains mainly red and green colors. Web safe color of #517227 is #666633 (or #663).
#517227 color RGB value is (81,114,39).
RGB: (81,114,39) (32%,45%,15%)
R 81 of 255 = 32%
G 114 of 255 = 45%
B 39 of 255 = 15%
R + G + B ~ 31%. #517227 is quite dark color.
R + G + B =
81 + 114 + 39 = 234 (100%)
R 81 of 234 ~ 34.62%
G 114 of 234 ~ 48.72%
B 39 of 234 ~ 16.67%
#517227 color CMYK value is (29,0,66,55).
CMYK: (29,0,66,55) C29M0Y66K55 (29%,0%,66%,55%) (0.29/0.00/0.66/0.55)
51 | 72 | 27 | |
---|---|---|---|
RGB | 81 | 114 | 39 |
HSL | 86° | 49.02% | 30.00% |
HSB/HSV | 86° | 65.79% | 44.71% |
CMYK | 28.95% | 0.00% | 65.79% |
55.29% |
HEX | 51 | 72 | 27 |
Decimal | 81 | 114 | 39 |
Binary | 1010001 | 1110010 | 100111 |
Octal | 121 | 162 | 47 |
Examples of css and html codes for elements with #517227 color. Also use rgb(81,114,39) instead hex code.
.myTextColor { color: #517227; }
<p style="color:#517227">This sample text font color is #517227.</p>
This text font color is #517227.
.myBgColor { background-color: #517227; }
<div style="background-color:#517227">Inner text</div>
This div background color is #517227.
.myBorderColor { border: 1px solid #517227; }
<div style="border:3px solid #517227">Div</div>
This div border color is #517227.
.myOpacity80 { color: #517227; opacity: 0.8; }
<p style="color:#517227;opacity:0.8;">80%</p>
Text with #517227 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #517227;}
<p style="text-shadow: 3px 3px 1px #517227">Text here.</p>
This text has shadow with #517227 color.
.textShadow {text-shadow: 3px 3px 1px #517227, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #517227, 5px 5px 20px red">Text here.</p>
This text has shadow with #517227 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#517227, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#517227, Direction=45, Strength=4)">Text</p>
This text has shadow with #517227 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #517227; -webkit-box-shadow: 1px 1px 3px 2px #517227; box-shadow: 1px 1px 3px 2px #517227; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #517227; -webkit-box-shadow: 1px 1px 3px 2px #517227; box-shadow:1px 1px 3px 2px #517227;">
Div content here</div>
This text has color #517227 on black background.
This text has color #517227 on white background.
This text has black color on #517227 background.
This text has white color on #517227 background.