HEX: #4C6A0C
RGB: (76,106,12)
#4C6A0C contains mainly red and green colors. Web safe color of #4C6A0C is #336600 (or #360).
#4C6A0C color RGB value is (76,106,12).
RGB: (76,106,12) (30%,42%,5%)
R 76 of 255 = 30%
G 106 of 255 = 42%
B 12 of 255 = 5%
R + G + B ~ 26%. #4C6A0C is quite dark color.
R + G + B =
76 + 106 + 12 = 194 (100%)
R 76 of 194 ~ 39.18%
G 106 of 194 ~ 54.64%
B 12 of 194 ~ 6.19%
#4C6A0C color CMYK value is (28,0,89,58).
CMYK: (28,0,89,58) C28M0Y89K58 (28%,0%,89%,58%) (0.28/0.00/0.89/0.58)
4C | 6A | 0C | |
---|---|---|---|
RGB | 76 | 106 | 12 |
HSL | 79° | 79.66% | 23.14% |
HSB/HSV | 79° | 88.68% | 41.57% |
CMYK | 28.30% | 0.00% | 88.68% |
58.43% |
HEX | 4C | 6A | 0C |
Decimal | 76 | 106 | 12 |
Binary | 1001100 | 1101010 | 1100 |
Octal | 114 | 152 | 14 |
Examples of css and html codes for elements with #4C6A0C color. Also use rgb(76,106,12) instead hex code.
.myTextColor { color: #4C6A0C; }
<p style="color:#4C6A0C">This sample text font color is #4C6A0C.</p>
This text font color is #4C6A0C.
.myBgColor { background-color: #4C6A0C; }
<div style="background-color:#4C6A0C">Inner text</div>
This div background color is #4C6A0C.
.myBorderColor { border: 1px solid #4C6A0C; }
<div style="border:3px solid #4C6A0C">Div</div>
This div border color is #4C6A0C.
.myOpacity80 { color: #4C6A0C; opacity: 0.8; }
<p style="color:#4C6A0C;opacity:0.8;">80%</p>
Text with #4C6A0C color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #4C6A0C;}
<p style="text-shadow: 3px 3px 1px #4C6A0C">Text here.</p>
This text has shadow with #4C6A0C color.
.textShadow {text-shadow: 3px 3px 1px #4C6A0C, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #4C6A0C, 5px 5px 20px red">Text here.</p>
This text has shadow with #4C6A0C primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#4C6A0C, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#4C6A0C, Direction=45, Strength=4)">Text</p>
This text has shadow with #4C6A0C and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #4C6A0C; -webkit-box-shadow: 1px 1px 3px 2px #4C6A0C; box-shadow: 1px 1px 3px 2px #4C6A0C; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #4C6A0C; -webkit-box-shadow: 1px 1px 3px 2px #4C6A0C; box-shadow:1px 1px 3px 2px #4C6A0C;">
Div content here</div>
This text has color #4C6A0C on black background.
This text has color #4C6A0C on white background.
This text has black color on #4C6A0C background.
This text has white color on #4C6A0C background.