HEX: #4B842D
RGB: (75,132,45)
#4B842D contains mainly red and green colors. Web safe color of #4B842D is #339933 (or #393).
#4B842D color RGB value is (75,132,45).
RGB: (75,132,45) (29%,52%,18%)
R 75 of 255 = 29%
G 132 of 255 = 52%
B 45 of 255 = 18%
R + G + B ~ 33%. #4B842D is quite dark color.
R + G + B =
75 + 132 + 45 = 252 (100%)
R 75 of 252 ~ 29.76%
G 132 of 252 ~ 52.38%
B 45 of 252 ~ 17.86%
#4B842D color CMYK value is (43,0,66,48).
CMYK: (43,0,66,48) C43M0Y66K48 (43%,0%,66%,48%) (0.43/0.00/0.66/0.48)
4B | 84 | 2D | |
---|---|---|---|
RGB | 75 | 132 | 45 |
HSL | 99° | 49.15% | 34.71% |
HSB/HSV | 99° | 65.91% | 51.76% |
CMYK | 43.18% | 0.00% | 65.91% |
48.24% |
HEX | 4B | 84 | 2D |
Decimal | 75 | 132 | 45 |
Binary | 1001011 | 10000100 | 101101 |
Octal | 113 | 204 | 55 |
Examples of css and html codes for elements with #4B842D color. Also use rgb(75,132,45) instead hex code.
.myTextColor { color: #4B842D; }
<p style="color:#4B842D">This sample text font color is #4B842D.</p>
This text font color is #4B842D.
.myBgColor { background-color: #4B842D; }
<div style="background-color:#4B842D">Inner text</div>
This div background color is #4B842D.
.myBorderColor { border: 1px solid #4B842D; }
<div style="border:3px solid #4B842D">Div</div>
This div border color is #4B842D.
.myOpacity80 { color: #4B842D; opacity: 0.8; }
<p style="color:#4B842D;opacity:0.8;">80%</p>
Text with #4B842D color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #4B842D;}
<p style="text-shadow: 3px 3px 1px #4B842D">Text here.</p>
This text has shadow with #4B842D color.
.textShadow {text-shadow: 3px 3px 1px #4B842D, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #4B842D, 5px 5px 20px red">Text here.</p>
This text has shadow with #4B842D primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#4B842D, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#4B842D, Direction=45, Strength=4)">Text</p>
This text has shadow with #4B842D and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #4B842D; -webkit-box-shadow: 1px 1px 3px 2px #4B842D; box-shadow: 1px 1px 3px 2px #4B842D; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #4B842D; -webkit-box-shadow: 1px 1px 3px 2px #4B842D; box-shadow:1px 1px 3px 2px #4B842D;">
Div content here</div>
This text has color #4B842D on black background.
This text has color #4B842D on white background.
This text has black color on #4B842D background.
This text has white color on #4B842D background.