CSS color names · Greens

Forest Green color: hex #228b22, RGB and HSL

Forest Green is the CSS keyword forestgreen, hex #228b22, rgb(34, 139, 34), hsl(120, 61%, 34%). It is a dark, vivid green in the greens family. Below: the colors that go with it, its tints and shades, how it reads as text, and a complete interface palette built from it.

CSS name
forestgreen
Hex
#228b22
RGB
rgb(34, 139, 34)
HSL
hsl(120, 61%, 34%)
On white
4.39:1 — large text and UI only (3:1)
On black
4.78:1 — passes AA for body text
.example {
  color: forestgreen;          /* keyword */
  color: #228b22;          /* hex */
  color: rgb(34, 139, 34); /* rgb */
  color: hsl(120, 61%, 34%); /* hsl */
}

What colors go with forest green

Each match keeps forest green's saturation and lightness and rotates only the hue, so the relationship is the wheel's and nothing else. Any of these can be an accent beside forest green as the primary; the harmony guides explain which rule suits which interface.

Complementary

The opposite hue, 180° away — the strongest contrast, best kept to one accent per screen.

#8b228b

Split-complementary

The two neighbors of the complement, at 150° and 210° — most of the contrast with less tension, and two accents instead of one.

#56228b
#8b2256

Triadic

Two hues at 120° and 240° — three evenly spaced signals, the scheme charts and category colors want.

#22228b
#8b2222

Analogous

The neighbors at −30° and +30° — calm and cohesive, with emphasis coming from weight and size rather than hue.

#568b22
#228b56

Tints and shades of forest green

Tints add lightness toward white; shades remove it toward black. The hue and saturation stay fixed, so every step still reads as forest green — these are the hover, pressed, disabled and surface variants a single brand color needs.

Tints (lighter)

#2db82d
#4ad34a
#78de78
#a5e9a5
#d2f4d2

Shades (darker)

#1c741c
#175d17
#114511
#0b2e0b
#061706

A UI color palette built from forest green

The eight semantic roles an interface actually uses, derived from forest green as the primary with the split-complementary rule: secondary and accent rotate around the wheel, and the five neutrals take the hue at lightness steps tuned for light and dark mode. This is the same derivation the palette generator runs — open it there to change the rule, drag the anchors, or export the set as CSS variables.

Light mode
primary
#228b22
secondary
#56228b
accent
#8b2256
background
#fcfdfc
surface
#f3f7f3
text
#112211
muted
#578f57
border
#dfecdf
Dark mode
primary
#47d247
secondary
#8c47d2
accent
#d2478c
background
#0e1b0e
surface
#152815
text
#f3f6f3
muted
#95b695
border
#274927

Using forest green in an interface

Green means success and 'on' — reserve one green for that job before you use another as a brand color. Sea green, forest green and teal are calm enough to lead a palette; the neon greens are for dark-mode accents and little else. Whichever role forest green takes, define it once as a token rather than repeating the keyword: the semantic palette guide covers the eight roles, and the guides to complementary, triadic and the other color schemes explain how to weight the matches above.

What is the hex code for Forest Green?
Forest Green is #228b22. In CSS the keyword forestgreen, the hex #228b22, rgb(34, 139, 34) and hsl(120, 61%, 34%) all paint the same color.
What colors go with Forest Green?
Its complement is #8b228b, the split-complementary pair is #56228b and #8b2256, the triadic partners are #22228b and #8b2222, and the analogous neighbors are #568b22 and #228b56. In an interface, use Forest Green for most colored elements and one of these for a single accent, at roughly an 80/20 split.
What is the opposite of Forest Green on the color wheel?
The opposite (complementary) color is #8b228b, the same saturation and lightness rotated 180° around the HSL wheel. Complementary pairs give the strongest contrast, which is why the complement should be used sparingly rather than at equal weight.
Can I use Forest Green for text?
Forest Green as text on white has a contrast ratio of 4.39:1, which fails WCAG AA for body text (4.5:1) but passes for large text and UI components (3:1). On black it is 4.78:1, which passes for body text. Use it as text on dark surfaces, or as a fill with dark text on top.

Similar named colors

More greens

We'd like to use Google cookies to understand how Nodlume is used and to measure our advertising. Nothing loads until you choose, and declining does not affect anything in the app.