HEX: #4A7D0F
RGB: (74,125,15)
#4A7D0F contains mainly red and green colors. Web safe color of #4A7D0F is #336600 (or #360).
#4A7D0F color RGB value is (74,125,15).
RGB: (74,125,15) (29%,49%,6%)
R 74 of 255 = 29%
G 125 of 255 = 49%
B 15 of 255 = 6%
R + G + B ~ 28%. #4A7D0F is quite dark color.
R + G + B =
74 + 125 + 15 = 214 (100%)
R 74 of 214 ~ 34.58%
G 125 of 214 ~ 58.41%
B 15 of 214 ~ 7.01%
#4A7D0F color CMYK value is (41,0,88,51).
CMYK: (41,0,88,51) C41M0Y88K51 (41%,0%,88%,51%) (0.41/0.00/0.88/0.51)
4A | 7D | 0F | |
---|---|---|---|
RGB | 74 | 125 | 15 |
HSL | 88° | 78.57% | 27.45% |
HSB/HSV | 88° | 88.00% | 49.02% |
CMYK | 40.80% | 0.00% | 88.00% |
50.98% |
HEX | 4A | 7D | 0F |
Decimal | 74 | 125 | 15 |
Binary | 1001010 | 1111101 | 1111 |
Octal | 112 | 175 | 17 |
Examples of css and html codes for elements with #4A7D0F color. Also use rgb(74,125,15) instead hex code.
.myTextColor { color: #4A7D0F; }
<p style="color:#4A7D0F">This sample text font color is #4A7D0F.</p>
This text font color is #4A7D0F.
.myBgColor { background-color: #4A7D0F; }
<div style="background-color:#4A7D0F">Inner text</div>
This div background color is #4A7D0F.
.myBorderColor { border: 1px solid #4A7D0F; }
<div style="border:3px solid #4A7D0F">Div</div>
This div border color is #4A7D0F.
.myOpacity80 { color: #4A7D0F; opacity: 0.8; }
<p style="color:#4A7D0F;opacity:0.8;">80%</p>
Text with #4A7D0F color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #4A7D0F;}
<p style="text-shadow: 3px 3px 1px #4A7D0F">Text here.</p>
This text has shadow with #4A7D0F color.
.textShadow {text-shadow: 3px 3px 1px #4A7D0F, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #4A7D0F, 5px 5px 20px red">Text here.</p>
This text has shadow with #4A7D0F primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#4A7D0F, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#4A7D0F, Direction=45, Strength=4)">Text</p>
This text has shadow with #4A7D0F and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #4A7D0F; -webkit-box-shadow: 1px 1px 3px 2px #4A7D0F; box-shadow: 1px 1px 3px 2px #4A7D0F; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #4A7D0F; -webkit-box-shadow: 1px 1px 3px 2px #4A7D0F; box-shadow:1px 1px 3px 2px #4A7D0F;">
Div content here</div>
This text has color #4A7D0F on black background.
This text has color #4A7D0F on white background.
This text has black color on #4A7D0F background.
This text has white color on #4A7D0F background.