100% free no uploads no sign-up

forest green color code

The hex code for forest green is #228B22, which is rgb(34, 139, 34) in RGB and cmyk(76%, 0%, 76%, 45%) in CMYK. It's a dark, rich green. It is a built-in CSS colour, so you can also write it as “forestgreen”.

#228B22forest green
White text: 4.38:1 large text onlyBlack text: 4.78:1 ✓ AANearest name: forest green

Move the sliders to find a lighter, darker or softer forest green; the codes update as you go.

Forest Green colour codes

HEX#228B22
RGBrgb(34, 139, 34)
HSLhsl(120, 61%, 34%)
HSV / HSBhsv(120, 76%, 55%)
CMYKcmyk(76%, 0%, 76%, 45%)
Decimal2263842
CSS keywordforestgreen

About forest green

Forest Green sits at a hue of 120° on the colour wheel, with 61% saturation and 34% lightness. That makes it a colour that sits between warm and cool: greens and purples like this can be styled warm or cool depending on what you put next to them.

For text, black reads better on forest green. Forest Green as text on a white background has a contrast ratio of 4.38:1, which fails the WCAG AA rule for body text (4.5:1) and passes the 3:1 rule for large text. On black it is 4.78:1, which passes AA for body text.

Tints and shades of forest green

Tints mix forest green with white and shades mix it with black, in 10% steps. They're the easiest way to get lighter backgrounds and darker hover or text colours that still match.

#E9F3E9#D3E8D3#BDDCBD#A7D1A7#91C591#7AB97A#64AE64#4EA24E#389738
forest green #228B22
#1F7D1F#1B6F1B#186118#145314#114611#0E380E#0A2A0A#071C07#030E03

Colours that go with forest green

Complementary — opposite on the colour wheel: maximum contrast

#228B22#8B228B

Analogous — neighbours 30° either side: calm and natural

#568B22#228B22#228B56

Triadic — three hues 120° apart: lively but balanced

#228B22#22228B#8B2222

Split complementary — the two neighbours of the complement: contrast with less tension

#228B22#56228B#8B2256

Tetradic — four hues 90° apart: rich, use one as the main colour

#228B22#22568B#8B228B#8B5622

Forest Green text contrast

CombinationRatioAA normal (4.5:1)AA large (3:1)AAA (7:1)
forest green on white4.38:1failpassfail
forest green on black4.78:1passpassfail

Check forest green against any other colour in the contrast checker.

How forest green looks with colour blindness

Simulated with the Machado et al. (2009) model for the complete loss of one type of cone cell. Colour vision deficiency affects roughly 1 in 12 men and 1 in 200 women, most often as red-green colour blindness.

normal #228B22protanopia #8E7D0Edeuteranopia #82752Dtritanopia #008777

Use forest green in code

.forest-green {
  color: forestgreen;
  background-color: #228b22;
  border-color: rgb(34, 139, 34);
}

Frequently asked questions

What is the hex code for forest green?

Forest Green is #228B22 (lowercase #228b22). It's the official value of the CSS keyword “forestgreen”.

What is forest green in RGB, HSL and CMYK?

RGB: rgb(34, 139, 34). HSL: hsl(120, 61%, 34%). CMYK: cmyk(76%, 0%, 76%, 45%). CMYK is a simple conversion for reference; for professional printing, ask your printer for a matching ink or Pantone swatch.

What colours go with forest green?

Its complementary colour is #8B228B (close to dark magenta), which gives the strongest contrast. For a calmer look, use the analogous colours #568B22 and #228B56, or the triadic pair #22228B and #8B2222. Tints and shades of forest green itself always work together.

Is forest green a warm or cool colour?

Forest Green has a hue of 120°, which makes it neither clearly warm nor cool.

Should I use black or white text on forest green?

Black. Black text on forest green has a contrast ratio of 4.78:1 and white text has 4.38:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.

How do I use forest green in CSS?

Write color: forestgreen; or color: #228b22; — both give the same colour. Named colours work in every browser.

Colours similar to forest green