Skip to content

Forest green

Forest green is a dark, rich color from the green family. Hex code #228B22.

Forest green#228B22

Color codes

  • CSS nameforestgreen
  • HEX#228B22
  • RGBrgb(34 139 34)
  • HSLhsl(120 61% 34%)
  • HSB / HSVhsb(120, 76%, 55%)
  • OKLCHoklch(55.8% 0.169 142.9)
  • CMYKcmyk(76%, 0%, 76%, 45%)

White text

4.38:1 · passes WCAG AA for large text only

Black text

4.78:1 · passes WCAG AA

Shades

50#D9FED6
100#8DF188
200#70D36C
300#53B650
400#359A33
500#0B7E10
600#0B600D
700#034505
800#022B02

Complementary

#228B22
#A14AAC

Analogous

#228B22
#757B04
#1C866E

Triadic

#228B22
#3C6DD5
#C33E42

About this color

Forest green in CSS and design

Forest green is a dark, rich color from the green family. Forest green is one of the extended color keywords, which CSS adopted from the X11 color names used on Unix workstations.

Use it in CSS by name or by any of its codes; these all give the same color:

color: forestgreen;
color: #228B22;
color: rgb(34 139 34);
color: hsl(120 61% 34%);

For text on forest green, black reads best. Check other combinations with the contrast checker, or browse all CSS color names.

Frequently asked questions

What is the hex code for forest green?

#228B22. In CSS you can also use the keyword forestgreen, which works in every browser.

What is forest green in RGB and HSL?

In RGB it is rgb(34 139 34), in HSL hsl(120 61% 34%). For print, cmyk(76%, 0%, 76%, 45%) is a starting point, but CMYK depends on paper and ink, so check with your printer.

Should I use black or white text on forest green?

Black text works better: it has a contrast ratio of 4.78:1 and passes WCAG AA. White text reaches 4.38:1.

Which colors go with forest green?

Its complementary color is #A14AAC, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #757B04 and #1C866E. The palette generator builds more combinations.