HEX: #4C7E16
RGB: (76,126,22)
#4C7E16 contains mainly red and green colors. Web safe color of #4C7E16 is #336600 (or #360).
#4C7E16 color RGB value is (76,126,22).
RGB: (76,126,22) (30%,49%,9%)
R 76 of 255 = 30%
G 126 of 255 = 49%
B 22 of 255 = 9%
R + G + B ~ 29%. #4C7E16 is quite dark color.
R + G + B =
76 + 126 + 22 = 224 (100%)
R 76 of 224 ~ 33.93%
G 126 of 224 ~ 56.25%
B 22 of 224 ~ 9.82%
#4C7E16 color CMYK value is (40,0,83,51).
CMYK: (40,0,83,51) C40M0Y83K51 (40%,0%,83%,51%) (0.40/0.00/0.83/0.51)
4C | 7E | 16 | |
---|---|---|---|
RGB | 76 | 126 | 22 |
HSL | 89° | 70.27% | 29.02% |
HSB/HSV | 89° | 82.54% | 49.41% |
CMYK | 39.68% | 0.00% | 82.54% |
50.59% |
HEX | 4C | 7E | 16 |
Decimal | 76 | 126 | 22 |
Binary | 1001100 | 1111110 | 10110 |
Octal | 114 | 176 | 26 |
Examples of css and html codes for elements with #4C7E16 color. Also use rgb(76,126,22) instead hex code.
.myTextColor { color: #4C7E16; }
<p style="color:#4C7E16">This sample text font color is #4C7E16.</p>
This text font color is #4C7E16.
.myBgColor { background-color: #4C7E16; }
<div style="background-color:#4C7E16">Inner text</div>
This div background color is #4C7E16.
.myBorderColor { border: 1px solid #4C7E16; }
<div style="border:3px solid #4C7E16">Div</div>
This div border color is #4C7E16.
.myOpacity80 { color: #4C7E16; opacity: 0.8; }
<p style="color:#4C7E16;opacity:0.8;">80%</p>
Text with #4C7E16 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #4C7E16;}
<p style="text-shadow: 3px 3px 1px #4C7E16">Text here.</p>
This text has shadow with #4C7E16 color.
.textShadow {text-shadow: 3px 3px 1px #4C7E16, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #4C7E16, 5px 5px 20px red">Text here.</p>
This text has shadow with #4C7E16 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#4C7E16, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#4C7E16, Direction=45, Strength=4)">Text</p>
This text has shadow with #4C7E16 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #4C7E16; -webkit-box-shadow: 1px 1px 3px 2px #4C7E16; box-shadow: 1px 1px 3px 2px #4C7E16; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #4C7E16; -webkit-box-shadow: 1px 1px 3px 2px #4C7E16; box-shadow:1px 1px 3px 2px #4C7E16;">
Div content here</div>
This text has color #4C7E16 on black background.
This text has color #4C7E16 on white background.
This text has black color on #4C7E16 background.
This text has white color on #4C7E16 background.