Inspect YellowGreen (#9ACD32) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.
YellowGreen
#9ACD32
Black text reads best on this background, at 11.15:1.
YellowGreen is one of the 148 CSS named colors, and resolves to #9ACD32 in every browser. In numbers that is rgb(154, 205, 50) and hsl(80, 61%, 50%). Perceptually it is a light, vivid color: OKLCH puts its lightness at 78% and its chroma at 0.184. It sits in the greens at 127 degrees of OKLCH hue, and reads as a warm color.
White text only reaches 1.88:1 here, so black text is the safer pairing at 11.15:1. At this chroma it is loud enough to be an accent or a call to action, but it will fight anything else vivid placed next to it.
The closest CSS named colors to YellowGreen, measured with CIEDE2000, are LimeGreen (#32CD32), GreenYellow (#ADFF2F), LawnGreen (#7CFC00). If YellowGreen is not quite right, those are the nearest keywords to try before reaching for a custom value.
HEX
#9ACD32
RGB
rgb(154, 205, 50)
HSL
hsl(80, 61%, 50%)
HWB
hwb(80 20% 20%)
CMYK
cmyk(25%, 0%, 76%, 20%)
LAB
lab(76.77 -33.1 65.63)
LCH
lch(76.77 73.5 116.76)
OKLCH
oklch(78.49% 0.1837 126.64)
WCAG asks for 4.5:1 between body text and its background. On #9ACD32 white text measures 1.88:1 and black text 11.15:1, so black clears it and white does not.
White text on YellowGreen
WCAG 2.2
1.88:1
APCA
Lc 39
Fails AA body text
Fails AAA body text
Fails AA large text
Black text on YellowGreen
WCAG 2.2
11.15:1
APCA
Lc 68
Passes AA body text
Passes AAA body text
Passes AA large text
Check YellowGreen against any other color in the contrast checker.
YellowGreen sits at 78% OKLCH lightness. Holding its hue and chroma and moving only that value carries it up to #F0FFDD and down to #040700, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.
#A6DA43
20% lighter
#B2E752
40% lighter
#BFF460
60% lighter
#CFFF84
80% lighter
#F0FFDD
100% lighter
#75A100
20% darker
#547500
40% darker
#364D00
60% darker
#1A2800
80% darker
#040700
100% darker
Build a full accessible scale from #9ACD32 in the shade generator.
Hues rotated around #9ACD32 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.
YellowGreen sits at 127 degrees. Rotating it a half turn lands on 307 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 YellowGreen at 97 and 157 degrees. They stay close enough to read as the same family, which is what you want for hover states, secondary surfaces and gradients.
127, 247 and 7 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 307 degrees, this pair flanks it at 277 and 337. You keep most of the contrast of a complementary pairing while losing the harshness.
Explore more combinations around YellowGreen on the color wheel.
The biggest shift is under achromatopsia, where #9ACD32 reads as #B7B7B7, 28.2 CIEDE2000 units away. If YellowGreen is the only thing marking a state or a series, roughly one viewer in twelve will miss it.
Protanopia
#E5B82A
Deuteranopia
#DEB737
Tritanopia
#A9BA9E
Achromatopsia
#B7B7B7
The nearest CSS keywords to #9ACD32, ranked by perceptual distance rather than by how close their hex digits happen to look.