HEX: #489E15
RGB: (72,158,21)
#489E15 contains mainly green color. Web safe color of #489E15 is #339900 (or #390).
#489E15 color RGB value is (72,158,21).
RGB: (72,158,21) (28%,62%,8%)
R 72 of 255 = 28%
G 158 of 255 = 62%
B 21 of 255 = 8%
R + G + B ~ 33%. #489E15 is quite dark color.
R + G + B =
72 + 158 + 21 = 251 (100%)
R 72 of 251 ~ 28.69%
G 158 of 251 ~ 62.95%
B 21 of 251 ~ 8.37%
#489E15 color CMYK value is (54,0,87,38).
CMYK: (54,0,87,38) C54M0Y87K38 (54%,0%,87%,38%) (0.54/0.00/0.87/0.38)
48 | 9E | 15 | |
---|---|---|---|
RGB | 72 | 158 | 21 |
HSL | 98° | 76.54% | 35.10% |
HSB/HSV | 98° | 86.71% | 61.96% |
CMYK | 54.43% | 0.00% | 86.71% |
38.04% |
HEX | 48 | 9E | 15 |
Decimal | 72 | 158 | 21 |
Binary | 1001000 | 10011110 | 10101 |
Octal | 110 | 236 | 25 |
Examples of css and html codes for elements with #489E15 color. Also use rgb(72,158,21) instead hex code.
.myTextColor { color: #489E15; }
<p style="color:#489E15">This sample text font color is #489E15.</p>
This text font color is #489E15.
.myBgColor { background-color: #489E15; }
<div style="background-color:#489E15">Inner text</div>
This div background color is #489E15.
.myBorderColor { border: 1px solid #489E15; }
<div style="border:3px solid #489E15">Div</div>
This div border color is #489E15.
.myOpacity80 { color: #489E15; opacity: 0.8; }
<p style="color:#489E15;opacity:0.8;">80%</p>
Text with #489E15 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #489E15;}
<p style="text-shadow: 3px 3px 1px #489E15">Text here.</p>
This text has shadow with #489E15 color.
.textShadow {text-shadow: 3px 3px 1px #489E15, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #489E15, 5px 5px 20px red">Text here.</p>
This text has shadow with #489E15 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#489E15, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#489E15, Direction=45, Strength=4)">Text</p>
This text has shadow with #489E15 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #489E15; -webkit-box-shadow: 1px 1px 3px 2px #489E15; box-shadow: 1px 1px 3px 2px #489E15; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #489E15; -webkit-box-shadow: 1px 1px 3px 2px #489E15; box-shadow:1px 1px 3px 2px #489E15;">
Div content here</div>
This text has color #489E15 on black background.
This text has color #489E15 on white background.
This text has black color on #489E15 background.
This text has white color on #489E15 background.