Forest green
Forest green is a dark, rich shade of green. Hex code #228B22.
Forest green color codes
- CSS name
forestgreen - HEX
#228B22 - RGB
rgb(34, 139, 34) - HSL
hsl(120, 61%, 34%) - OKLCH
oklch(55.8% 0.169 142.9)
HSB and CMYK values
- HSB / HSV
hsb(120, 76%, 55%) - CMYK
C76 M0 Y76 K45
White text
4.38:1 · passes WCAG AA for large text only
Black text
4.78:1 · passes WCAG AA
Shades of forest green
A darker shade of forest green is #0B600D (600), and a lighter one is #53B650 (300).
Colors that go with forest green
Complementary
Analogous
Triadic
The complementary color of forest green is #8B228B, close to dark magenta.
Click a color to copy its hex code.
Colors similar to forest green
- Green#008000
Slightly darker
- Sea green#2E8B57
More cyan, more muted
- Olive drab#6B8E23
Slightly lighter, more yellow, more muted
- Olive#808000
Slightly lighter, more yellow, more muted
- Dark olive green#556B2F
Darker, more yellow, more muted
- Dark green#006400
Darker
Each compared with forest green.
About this color
Forest green in CSS and design
Forest green is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same forest green:
color: forestgreen;
color: #228B22;
color: rgb(34, 139, 34);
color: hsl(120, 61%, 34%);What to know about forest green
Forest green (#228B22) is a medium green, slightly lighter and softer than CSS green (#008000). As text on white it falls just short of WCAG AA at 4.38:1, where green passes at 5.13:1. For a deeper green, dark green (#006400) is the darkest of the named greens.
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) and in HSL hsl(120, 61%, 34%). In CMYK it is about C76 M0 Y76 K45, though printed colors vary with paper and ink.
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.
What is the complementary color of forest green?
#8B228B, close to dark magenta. It sits opposite forest green on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.
Which colors go with forest green?
For strong contrast, pair it with its complementary color #8B228B. For a calmer look, combine it with its analogous neighbors #568B22 and #228B56. The palette generator builds more combinations.