Skip to content

Forest Green

Hex #228B22, rgb(34 139 34). A green CSS named color.

Open in palette generator

Forest Green color codes

Click any value to copy it.

HEX
RGB
HSL
HSV
HWB
CMYK
OKLCH
OKLab
Lab
LCH
CSS keyword

About Forest Green

Forest Green is a medium saturated green with the hex code #228B22. In RGB it is made of 34 red, 139 green and 34 blue; in HSL its hue is 120°, with 61% saturation and 34% lightness. Its perceptual lightness (OKLCH L) is 55.8%.

It is a CSS named color, so you can write "forestgreen" anywhere CSS accepts a color. Against white it has a contrast ratio of 4.39:1 and against black 4.78:1, so black text reads better on it and passes WCAG AA for normal text.

Tints, shades and tones

Forest Green mixed step by step with white, black and middle gray (#808080).

Tints (with white)

Shades (with black)

Tones (with gray)

Forest Green 50-950 scale

A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.

Colors that go with Forest Green

Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.

Complementary

Analogous

Triadic

Split complementary

Tetradic

Square

Contrast and readability

WCAG 2 contrast of Forest Green with white and black. The readable text color on Forest Green is black.

Forest Green textSmall text on white

On white4.39:1

  • AA fail
  • AA Large pass
  • AAA fail
  • UI 3:1 pass

APCA Lc 70

Forest Green textSmall text on black

On black4.78:1

  • AA pass
  • AA Large pass
  • AAA fail
  • UI 3:1 pass

APCA Lc -32

Black text on Forest Green (#000000)

Test any pair in the contrast checker.

Color blindness preview

How Forest Green appears with each type of color vision deficiency (simulated with the Machado model).

  • Protanopia#8E7D0E
  • Deuteranopia#82752D
  • Tritanopia#008777
  • Protanomaly#7C801A
  • Deuteranomaly#757B2A
  • Tritanomaly#0F8956
  • Achromatopsia#787878

Colors similar to Forest Green

The closest named colors by perceptual difference (OKLab).

Use Forest Green in CSS and Tailwind

CSS
.forest-green {
  color: forestgreen; /* #228B22 */
  background-color: rgb(34 139 34);
  border-color: oklch(55.8% 0.169 142.9);
}
Tailwind CSS
/* Tailwind CSS v4: bg-forest-green-500, text-forest-green-700... */
@theme {
  --color-forest-green-50: #F6FCF5;
  --color-forest-green-100: #E3F3E2;
  --color-forest-green-200: #C8E5C5;
  --color-forest-green-300: #9CD198;
  --color-forest-green-400: #60B45C;
  --color-forest-green-500: #37A035;
  --color-forest-green-600: #228B22;
  --color-forest-green-700: #157016;
  --color-forest-green-800: #145914;
  --color-forest-green-900: #134812;
  --color-forest-green-950: #001D00;
}

<!-- or the exact color, no config -->
<div class="bg-[#228B22] text-[#000000]">…</div>