HEX: #7E9A28
RGB: (126,154,40)
#7E9A28 contains mainly red and green colors. Web safe color of #7E9A28 is #669933 (or #693).
#7E9A28 color RGB value is (126,154,40).
RGB: (126,154,40) (49%,60%,16%)
R 126 of 255 = 49%
G 154 of 255 = 60%
B 40 of 255 = 16%
R + G + B ~ 42%. #7E9A28 is middle color (not dark and not light).
R + G + B =
126 + 154 + 40 = 320 (100%)
R 126 of 320 ~ 39.38%
G 154 of 320 ~ 48.13%
B 40 of 320 ~ 12.5%
#7E9A28 color CMYK value is (18,0,74,40).
CMYK: (18,0,74,40) C18M0Y74K40 (18%,0%,74%,40%) (0.18/0.00/0.74/0.40)
7E | 9A | 28 | |
---|---|---|---|
RGB | 126 | 154 | 40 |
HSL | 75° | 58.76% | 38.04% |
HSB/HSV | 75° | 74.03% | 60.39% |
CMYK | 18.18% | 0.00% | 74.03% |
39.61% |
HEX | 7E | 9A | 28 |
Decimal | 126 | 154 | 40 |
Binary | 1111110 | 10011010 | 101000 |
Octal | 176 | 232 | 50 |
Examples of css and html codes for elements with #7E9A28 color. Also use rgb(126,154,40) instead hex code.
.myTextColor { color: #7E9A28; }
<p style="color:#7E9A28">This sample text font color is #7E9A28.</p>
This text font color is #7E9A28.
.myBgColor { background-color: #7E9A28; }
<div style="background-color:#7E9A28">Inner text</div>
This div background color is #7E9A28.
.myBorderColor { border: 1px solid #7E9A28; }
<div style="border:3px solid #7E9A28">Div</div>
This div border color is #7E9A28.
.myOpacity80 { color: #7E9A28; opacity: 0.8; }
<p style="color:#7E9A28;opacity:0.8;">80%</p>
Text with #7E9A28 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #7E9A28;}
<p style="text-shadow: 3px 3px 1px #7E9A28">Text here.</p>
This text has shadow with #7E9A28 color.
.textShadow {text-shadow: 3px 3px 1px #7E9A28, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #7E9A28, 5px 5px 20px red">Text here.</p>
This text has shadow with #7E9A28 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#7E9A28, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#7E9A28, Direction=45, Strength=4)">Text</p>
This text has shadow with #7E9A28 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #7E9A28; -webkit-box-shadow: 1px 1px 3px 2px #7E9A28; box-shadow: 1px 1px 3px 2px #7E9A28; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #7E9A28; -webkit-box-shadow: 1px 1px 3px 2px #7E9A28; box-shadow:1px 1px 3px 2px #7E9A28;">
Div content here</div>
This text has color #7E9A28 on black background.
This text has color #7E9A28 on white background.
This text has black color on #7E9A28 background.
This text has white color on #7E9A28 background.