HEX: #228B22
RGB: (34,139,34)
Color name is ForestGreen. #228B22 contains mainly green color. Web safe color of #228B22 is #339933 (or #393).
#228B22 color RGB value is (34,139,34).
RGB: (34,139,34) (13%,55%,13%)
R 34 of 255 = 13%
G 139 of 255 = 55%
B 34 of 255 = 13%
R + G + B ~ 27%. #228B22 is quite dark color.
R + G + B =
34 + 139 + 34 = 207 (100%)
R 34 of 207 ~ 16.43%
G 139 of 207 ~ 67.15%
B 34 of 207 ~ 16.43%
#228B22 color CMYK value is (76,0,76,45).
CMYK: (76,0,76,45) C76M0Y76K45 (76%,0%,76%,45%) (0.76/0.00/0.76/0.45)
22 | 8B | 22 | |
---|---|---|---|
RGB | 34 | 139 | 34 |
HSL | 120° | 60.69% | 33.92% |
HSB/HSV | 120° | 75.54% | 54.51% |
CMYK | 75.54% | 0.00% | 75.54% |
45.49% |
HEX | 22 | 8B | 22 |
Decimal | 34 | 139 | 34 |
Binary | 100010 | 10001011 | 100010 |
Octal | 42 | 213 | 42 |
Examples of css and html codes for elements with #228B22 color. Also use rgb(34,139,34) instead hex code.
.myTextColor { color: #228B22; }
<p style="color:#228B22">This sample text font color is #228B22.</p>
This text font color is #228B22.
.myBgColor { background-color: #228B22; }
<div style="background-color:#228B22">Inner text</div>
This div background color is #228B22.
.myBorderColor { border: 1px solid #228B22; }
<div style="border:3px solid #228B22">Div</div>
This div border color is #228B22.
.myOpacity80 { color: #228B22; opacity: 0.8; }
<p style="color:#228B22;opacity:0.8;">80%</p>
Text with #228B22 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #228B22;}
<p style="text-shadow: 3px 3px 1px #228B22">Text here.</p>
This text has shadow with #228B22 color.
.textShadow {text-shadow: 3px 3px 1px #228B22, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #228B22, 5px 5px 20px red">Text here.</p>
This text has shadow with #228B22 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#228B22, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#228B22, Direction=45, Strength=4)">Text</p>
This text has shadow with #228B22 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #228B22; -webkit-box-shadow: 1px 1px 3px 2px #228B22; box-shadow: 1px 1px 3px 2px #228B22; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #228B22; -webkit-box-shadow: 1px 1px 3px 2px #228B22; box-shadow:1px 1px 3px 2px #228B22;">
Div content here</div>
This text has color #228B22 on black background.
This text has color #228B22 on white background.
This text has black color on #228B22 background.
This text has white color on #228B22 background.