HEX: #4C786C
RGB: (76,120,108)
#4C786C contains red, green and blue colors in about the same proportion. Web safe color of #4C786C is #336666 (or #366).
#4C786C color RGB value is (76,120,108).
RGB: (76,120,108) (30%,47%,42%)
R 76 of 255 = 30%
G 120 of 255 = 47%
B 108 of 255 = 42%
R + G + B ~ 40%. #4C786C is middle color (not dark and not light).
R + G + B =
76 + 120 + 108 = 304 (100%)
R 76 of 304 ~ 25%
G 120 of 304 ~ 39.47%
B 108 of 304 ~ 35.53%
#4C786C color CMYK value is (37,0,10,53).
CMYK: (37,0,10,53) C37M0Y10K53 (37%,0%,10%,53%) (0.37/0.00/0.10/0.53)
4C | 78 | 6C | |
---|---|---|---|
RGB | 76 | 120 | 108 |
HSL | 164° | 22.45% | 38.43% |
HSB/HSV | 164° | 36.67% | 47.06% |
CMYK | 36.67% | 0.00% | 10.00% |
52.94% |
HEX | 4C | 78 | 6C |
Decimal | 76 | 120 | 108 |
Binary | 1001100 | 1111000 | 1101100 |
Octal | 114 | 170 | 154 |
Examples of css and html codes for elements with #4C786C color. Also use rgb(76,120,108) instead hex code.
.myTextColor { color: #4C786C; }
<p style="color:#4C786C">This sample text font color is #4C786C.</p>
This text font color is #4C786C.
.myBgColor { background-color: #4C786C; }
<div style="background-color:#4C786C">Inner text</div>
This div background color is #4C786C.
.myBorderColor { border: 1px solid #4C786C; }
<div style="border:3px solid #4C786C">Div</div>
This div border color is #4C786C.
.myOpacity80 { color: #4C786C; opacity: 0.8; }
<p style="color:#4C786C;opacity:0.8;">80%</p>
Text with #4C786C color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #4C786C;}
<p style="text-shadow: 3px 3px 1px #4C786C">Text here.</p>
This text has shadow with #4C786C color.
.textShadow {text-shadow: 3px 3px 1px #4C786C, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #4C786C, 5px 5px 20px red">Text here.</p>
This text has shadow with #4C786C primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#4C786C, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#4C786C, Direction=45, Strength=4)">Text</p>
This text has shadow with #4C786C and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #4C786C; -webkit-box-shadow: 1px 1px 3px 2px #4C786C; box-shadow: 1px 1px 3px 2px #4C786C; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #4C786C; -webkit-box-shadow: 1px 1px 3px 2px #4C786C; box-shadow:1px 1px 3px 2px #4C786C;">
Div content here</div>
This text has color #4C786C on black background.
This text has color #4C786C on white background.
This text has black color on #4C786C background.
This text has white color on #4C786C background.