Forest Green color (#228B22)
Forest Green is one of the 148 CSS named colors. Use the keyword forestgreen
anywhere CSS accepts a color, or its hex code #228B22, which is rgb(34, 139, 34) in RGB.
It is a medium, vivid cool color with a hue angle of 120° on the HSL color wheel and a perceived lightness of 56% in OKLCH. On a forest green background, black text gives the higher contrast at 4.78:1, which passes WCAG AA for normal text.
Forest Green color codes
| CSS name | forestgreen |
|
|---|---|---|
| HEX | #228B22 |
|
| HEX (8-digit) | #228B22FF |
|
| RGB | rgb(34, 139, 34) |
|
| HSL | hsl(120, 61%, 34%) |
|
| HSV / HSB | hsv(120, 76%, 55%) |
|
| OKLCH | oklch(55.8% 0.1688 142.9) |
|
| CMYK | cmyk(75.5%, 0%, 75.5%, 45.5%) |
Contrast with white and black
WCAG 2 contrast ratios and APCA lightness contrast (Lc) for forest green used as text and as a background.
Tints and shades of forest green
Tints mix forest green with white; shades mix it with black, in 10% steps. Click a swatch to copy it, or build custom scales in the tint & shade generator.
Tints
Shades
Colors that go with forest green
Harmonies calculated on the HSL color wheel. Explore more in the color scheme generator.
Complementary
Analogous
Triadic
Split-Complementary
Forest Green with color blindness
Approximately how forest green appears with each type of color vision deficiency. Test full designs with the color blindness simulator.
Using forest green in CSS
.element {
color: forestgreen;
background-color: #228b22;
border-color: rgb(34 139 34 / 50%);
outline-color: oklch(55.8% 0.1688 142.9);
}Similar named colors
See all shades of green or browse every CSS color name.