Forest Green #228B22

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.

Aa Sample text
Forest Green text on white
4.38:1 WCAG Lc 69.9 APCA AA large text only
Aa Sample text
Forest Green text on black
4.78:1 WCAG Lc -31.7 APCA Passes AA
Aa Sample text
White text on forest green
4.38:1 WCAG Lc -75.4 APCA AA large text only
Aa Sample text
Black text on forest green
4.78:1 WCAG Lc 34.2 APCA Passes AA

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.

Related tools