HEX: #4C871C
RGB: (76,135,28)
#4C871C contains mainly red and green colors. Web safe color of #4C871C is #339933 (or #393).
#4C871C color RGB value is (76,135,28).
RGB: (76,135,28) (30%,53%,11%)
R 76 of 255 = 30%
G 135 of 255 = 53%
B 28 of 255 = 11%
R + G + B ~ 31%. #4C871C is quite dark color.
R + G + B =
76 + 135 + 28 = 239 (100%)
R 76 of 239 ~ 31.8%
G 135 of 239 ~ 56.49%
B 28 of 239 ~ 11.72%
#4C871C color CMYK value is (44,0,79,47).
CMYK: (44,0,79,47) C44M0Y79K47 (44%,0%,79%,47%) (0.44/0.00/0.79/0.47)
4C | 87 | 1C | |
---|---|---|---|
RGB | 76 | 135 | 28 |
HSL | 93° | 65.64% | 31.96% |
HSB/HSV | 93° | 79.26% | 52.94% |
CMYK | 43.70% | 0.00% | 79.26% |
47.06% |
HEX | 4C | 87 | 1C |
Decimal | 76 | 135 | 28 |
Binary | 1001100 | 10000111 | 11100 |
Octal | 114 | 207 | 34 |
Examples of css and html codes for elements with #4C871C color. Also use rgb(76,135,28) instead hex code.
.myTextColor { color: #4C871C; }
<p style="color:#4C871C">This sample text font color is #4C871C.</p>
This text font color is #4C871C.
.myBgColor { background-color: #4C871C; }
<div style="background-color:#4C871C">Inner text</div>
This div background color is #4C871C.
.myBorderColor { border: 1px solid #4C871C; }
<div style="border:3px solid #4C871C">Div</div>
This div border color is #4C871C.
.myOpacity80 { color: #4C871C; opacity: 0.8; }
<p style="color:#4C871C;opacity:0.8;">80%</p>
Text with #4C871C color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #4C871C;}
<p style="text-shadow: 3px 3px 1px #4C871C">Text here.</p>
This text has shadow with #4C871C color.
.textShadow {text-shadow: 3px 3px 1px #4C871C, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #4C871C, 5px 5px 20px red">Text here.</p>
This text has shadow with #4C871C primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#4C871C, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#4C871C, Direction=45, Strength=4)">Text</p>
This text has shadow with #4C871C and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #4C871C; -webkit-box-shadow: 1px 1px 3px 2px #4C871C; box-shadow: 1px 1px 3px 2px #4C871C; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #4C871C; -webkit-box-shadow: 1px 1px 3px 2px #4C871C; box-shadow:1px 1px 3px 2px #4C871C;">
Div content here</div>
This text has color #4C871C on black background.
This text has color #4C871C on white background.
This text has black color on #4C871C background.
This text has white color on #4C871C background.