CSS Named Color Reference

Forest Green Color Code

Forest Green·#228B22

Green FamilyNeutralDark toneMid saturationoklch(55.8% 0.169 143)
HEX
#228B22Primary token
RGB
rgb(34, 139, 34)Screen values
HSL
hsl(120 61% 34%)Hue and lightness
CMYK
76, 0, 76, 45Print handoff
LAB
51, -50, 45Perceptual reference
OKLCH
oklch(55.8% 0.169 143)Modern perceptual

Forest Green is a deep, balanced CSS named color at #228B22. If you searched for forest green hex code, 228B22, or forest green RGB, this page gives the exact color value, conversion formats, contrast checks, nearby colors, and links into the lookup and converter workflows.

Best text colorWhite text
Body text contrast4.39:1
Best UseSuccess states, natural brands, support actions, and calm interface signals

Tonal Scale

100#D7EAD7
300#99CA99
500#4AA04A
600#228B22
800#186418

Contrast Checks

White text on this color

Buttons, badges, and filled actions.

4.39:1Large text / UI only

Dark text on this color

Large headings and selective UI.

3.91:1Large text / UI only

This color on light surface

Links, borders, and icons on light UI.

4.17:1Large text / UI only
Best text colorWhite textContrast 4.39:1

Professional Reference

OKLCHoklch(55.8% 0.169 143)
Relative Luminance0.1892
Source TypeCSS Named Color
Classification
Green FamilyNeutralDark toneMid saturation
Source Context
Source Type
CSS Named Color
System
CSS
Closest Matches
GreenAnt Design Green 8Material Green 600
Color Notes
  • Forest Green is kept as an exact CSS named color for #228B22.
  • Queries for forest green color code, 228B22, or forest green RGB usually need the value first, then contrast and implementation context.

Accessibility Matrix

White text on this color

White text placed on the current color.

4.39:1Large text / UI only

Dark text on this color

Dark text or headings on the current color.

3.91:1Large text / UI only

This color on light surface

Use this color for links, strokes, or icons on light UI.

4.17:1Large text / UI only

This color on dark surface

Use this color inside dark shells for strokes, tags, or icons.

3.91:1Large text / UI only
Best text colorWhite textContrast 4.39:1 · Large text / UI only

Where It Works

  • Use it for success states, support actions, ecology cues, and stable positive feedback.
  • Very bright greens need contrast testing before they become buttons or text backgrounds.
  • Pair with white, charcoal, soft neutrals, and nearby teal or yellow-green colors.

Reference Notes

Last Updated
2026-09-03
Source Library
CSS Standard Colors
Methodology
Verified source values + site guidance
Color Notes

Forest Green is sourced from the published CSS Standard Colors library and retained here as a searchable reference swatch for product and interface reference work.

Hue Family

Natural greens for sustainability and calm systems.

Source Collections
CSS Named Colors

Related Colors

Palette Starting Points

Implementation Snippets

CSS Variables
:root {
  --color-forest-green: #228B22;
  --color-forest-green-rgb: 34 139 34;
}
Utility Class
class="bg-[#228B22] text-white"
class="hover:bg-[#186418] ring-1 ring-[#228B22]"
JSON Token
{
  "forestGreen": "#228B22",
  "forestGreenRgb": [34, 139, 34],
  "forestGreenHsl": [120, 61, 34]
}