HEX: #4C7D2F
RGB: (76,125,47)
#4C7D2F contains mainly red and green colors. Web safe color of #4C7D2F is #336633 (or #363).
#4C7D2F color RGB value is (76,125,47).
RGB: (76,125,47) (30%,49%,18%)
R 76 of 255 = 30%
G 125 of 255 = 49%
B 47 of 255 = 18%
R + G + B ~ 32%. #4C7D2F is quite dark color.
R + G + B =
76 + 125 + 47 = 248 (100%)
R 76 of 248 ~ 30.65%
G 125 of 248 ~ 50.4%
B 47 of 248 ~ 18.95%
#4C7D2F color CMYK value is (39,0,62,51).
CMYK: (39,0,62,51) C39M0Y62K51 (39%,0%,62%,51%) (0.39/0.00/0.62/0.51)
4C | 7D | 2F | |
---|---|---|---|
RGB | 76 | 125 | 47 |
HSL | 98° | 45.35% | 33.73% |
HSB/HSV | 98° | 62.40% | 49.02% |
CMYK | 39.20% | 0.00% | 62.40% |
50.98% |
HEX | 4C | 7D | 2F |
Decimal | 76 | 125 | 47 |
Binary | 1001100 | 1111101 | 101111 |
Octal | 114 | 175 | 57 |
Examples of css and html codes for elements with #4C7D2F color. Also use rgb(76,125,47) instead hex code.
.myTextColor { color: #4C7D2F; }
<p style="color:#4C7D2F">This sample text font color is #4C7D2F.</p>
This text font color is #4C7D2F.
.myBgColor { background-color: #4C7D2F; }
<div style="background-color:#4C7D2F">Inner text</div>
This div background color is #4C7D2F.
.myBorderColor { border: 1px solid #4C7D2F; }
<div style="border:3px solid #4C7D2F">Div</div>
This div border color is #4C7D2F.
.myOpacity80 { color: #4C7D2F; opacity: 0.8; }
<p style="color:#4C7D2F;opacity:0.8;">80%</p>
Text with #4C7D2F color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #4C7D2F;}
<p style="text-shadow: 3px 3px 1px #4C7D2F">Text here.</p>
This text has shadow with #4C7D2F color.
.textShadow {text-shadow: 3px 3px 1px #4C7D2F, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #4C7D2F, 5px 5px 20px red">Text here.</p>
This text has shadow with #4C7D2F primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#4C7D2F, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#4C7D2F, Direction=45, Strength=4)">Text</p>
This text has shadow with #4C7D2F and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #4C7D2F; -webkit-box-shadow: 1px 1px 3px 2px #4C7D2F; box-shadow: 1px 1px 3px 2px #4C7D2F; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #4C7D2F; -webkit-box-shadow: 1px 1px 3px 2px #4C7D2F; box-shadow:1px 1px 3px 2px #4C7D2F;">
Div content here</div>
This text has color #4C7D2F on black background.
This text has color #4C7D2F on white background.
This text has black color on #4C7D2F background.
This text has white color on #4C7D2F background.