HEX: #489742
RGB: (72,151,66)
#489742 contains mainly green color. Web safe color of #489742 is #339933 (or #393).
#489742 color RGB value is (72,151,66).
RGB: (72,151,66) (28%,59%,26%)
R 72 of 255 = 28%
G 151 of 255 = 59%
B 66 of 255 = 26%
R + G + B ~ 38%. #489742 is quite dark color.
R + G + B =
72 + 151 + 66 = 289 (100%)
R 72 of 289 ~ 24.91%
G 151 of 289 ~ 52.25%
B 66 of 289 ~ 22.84%
#489742 color CMYK value is (52,0,56,41).
CMYK: (52,0,56,41) C52M0Y56K41 (52%,0%,56%,41%) (0.52/0.00/0.56/0.41)
48 | 97 | 42 | |
---|---|---|---|
RGB | 72 | 151 | 66 |
HSL | 116° | 39.17% | 42.55% |
HSB/HSV | 116° | 56.29% | 59.22% |
CMYK | 52.32% | 0.00% | 56.29% |
40.78% |
HEX | 48 | 97 | 42 |
Decimal | 72 | 151 | 66 |
Binary | 1001000 | 10010111 | 1000010 |
Octal | 110 | 227 | 102 |
Examples of css and html codes for elements with #489742 color. Also use rgb(72,151,66) instead hex code.
.myTextColor { color: #489742; }
<p style="color:#489742">This sample text font color is #489742.</p>
This text font color is #489742.
.myBgColor { background-color: #489742; }
<div style="background-color:#489742">Inner text</div>
This div background color is #489742.
.myBorderColor { border: 1px solid #489742; }
<div style="border:3px solid #489742">Div</div>
This div border color is #489742.
.myOpacity80 { color: #489742; opacity: 0.8; }
<p style="color:#489742;opacity:0.8;">80%</p>
Text with #489742 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #489742;}
<p style="text-shadow: 3px 3px 1px #489742">Text here.</p>
This text has shadow with #489742 color.
.textShadow {text-shadow: 3px 3px 1px #489742, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #489742, 5px 5px 20px red">Text here.</p>
This text has shadow with #489742 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#489742, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#489742, Direction=45, Strength=4)">Text</p>
This text has shadow with #489742 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #489742; -webkit-box-shadow: 1px 1px 3px 2px #489742; box-shadow: 1px 1px 3px 2px #489742; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #489742; -webkit-box-shadow: 1px 1px 3px 2px #489742; box-shadow:1px 1px 3px 2px #489742;">
Div content here</div>
This text has color #489742 on black background.
This text has color #489742 on white background.
This text has black color on #489742 background.
This text has white color on #489742 background.