Inspect ForestGreen (#228B22) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.
ForestGreen
#228B22
Black text reads best on this background, at 4.78:1.
ForestGreen is one of the 148 CSS named colors, and resolves to #228B22 in every browser. In numbers that is rgb(34, 139, 34) and hsl(120, 61%, 34%). Perceptually it is a mid-toned, moderately saturated color: OKLCH puts its lightness at 56% and its chroma at 0.169. It sits in the greens at 143 degrees of OKLCH hue, and reads as a cool color.
White text only reaches 4.39:1 here, so black text is the safer pairing at 4.78:1. That combination of lightness and chroma makes it a workable mid-tone, the kind of value that lands in the middle of a shade scale.
The closest CSS named colors to ForestGreen, measured with CIEDE2000, are Green (#008000), SeaGreen (#2E8B57), OliveDrab (#6B8E23). If ForestGreen is not quite right, those are the nearest keywords to try before reaching for a custom value.
HEX
#228B22
RGB
rgb(34, 139, 34)
HSL
hsl(120, 61%, 34%)
HWB
hwb(120 13% 45%)
CMYK
cmyk(76%, 0%, 76%, 45%)
LAB
lab(50.64 -45.72 44.03)
LCH
lch(50.64 63.47 136.08)
OKLCH
oklch(55.78% 0.1688 142.89)
WCAG asks for 4.5:1 between body text and its background. On #228B22 white text measures 4.39:1 and black text 4.78:1, so black clears it and white does not.
White text on ForestGreen
WCAG 2.2
4.39:1
APCA
Lc 75
Fails AA body text
Fails AAA body text
Passes AA large text
Black text on ForestGreen
WCAG 2.2
4.78:1
APCA
Lc 34
Passes AA body text
Fails AAA body text
Passes AA large text
Check ForestGreen against any other color in the contrast checker.
ForestGreen sits at 56% OKLCH lightness. Holding its hue and chroma and moving only that value carries it up to #ECFFEA and down to #000900, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.
#42A53F
20% lighter
#5EC15A
40% lighter
#7ADC75
60% lighter
#95F990
80% lighter
#ECFFEA
100% lighter
#006F06
20% darker
#005303
40% darker
#003801
60% darker
#001F00
80% darker
#000900
100% darker
Build a full accessible scale from #228B22 in the shade generator.
Hues rotated around #228B22 in OKLCH, then pulled back into the sRGB gamut. Each swatch is labelled with the nearest CSS named color so you have a keyword to start from.
ForestGreen sits at 143 degrees. Rotating it a half turn lands on 323 degrees, the hue directly opposite. It is the strongest pairing you can make without changing lightness, and the one most likely to vibrate if you use both at full chroma.
The neighbors of ForestGreen at 113 and 173 degrees. They stay close enough to read as the same family, which is what you want for hover states, secondary surfaces and gradients.
143, 263 and 23 degrees divide the wheel into thirds. Balanced enough to carry a whole palette without one color dominating the other two.
Instead of the complement at 323 degrees, this pair flanks it at 293 and 353. You keep most of the contrast of a complementary pairing while losing the harshness.
Explore more combinations around ForestGreen on the color wheel.
The biggest shift is under achromatopsia, where #228B22 reads as #6D6D6D, 27.3 CIEDE2000 units away. If ForestGreen is the only thing marking a state or a series, roughly one viewer in twelve will miss it.
Protanopia
#91751D
Deuteranopia
#7C6927
Tritanopia
#1A846B
Achromatopsia
#6D6D6D
The nearest CSS keywords to #228B22, ranked by perceptual distance rather than by how close their hex digits happen to look.