Inspect LawnGreen (#7CFC00) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.
LawnGreen
#7CFC00
Black text reads best on this background, at 15.78:1.
LawnGreen is one of the 148 CSS named colors, and resolves to #7CFC00 in every browser. In numbers that is rgb(124, 252, 0) and hsl(90, 100%, 49%). Perceptually it is a very light, vivid color: OKLCH puts its lightness at 88% and its chroma at 0.263. It sits in the greens at 136 degrees of OKLCH hue, and reads as a cool color.
White text only reaches 1.33:1 here, so black text is the safer pairing at 15.78:1. Because it is this light, LawnGreen works best as a page or card background with dark text over it.
The closest CSS named colors to LawnGreen, measured with CIEDE2000, are Chartreuse (#7FFF00), GreenYellow (#ADFF2F), Lime (#00FF00). If LawnGreen is not quite right, those are the nearest keywords to try before reaching for a custom value.
HEX
#7CFC00
RGB
rgb(124, 252, 0)
HSL
hsl(90, 100%, 49%)
HWB
hwb(90 0% 1%)
CMYK
cmyk(51%, 0%, 100%, 1%)
LAB
lab(89.05 -61.33 83.04)
LCH
lch(89.05 103.23 126.45)
OKLCH
oklch(88.18% 0.2631 136.17)
WCAG asks for 4.5:1 between body text and its background. On #7CFC00 white text measures 1.33:1 and black text 15.78:1, so black clears it and white does not.
White text on LawnGreen
WCAG 2.2
1.33:1
APCA
Lc 18
Fails AA body text
Fails AAA body text
Fails AA large text
Black text on LawnGreen
WCAG 2.2
15.78:1
APCA
Lc 87
Passes AA body text
Passes AAA body text
Passes AA large text
Check LawnGreen against any other color in the contrast checker.
LawnGreen sits at 88% OKLCH lightness. Holding its hue and chroma and moving only that value carries it up to #EDFFE5 and down to #020800, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.
#92FF52
20% lighter
#AEFF86
40% lighter
#C5FFAB
60% lighter
#DAFFCA
80% lighter
#EDFFE5
100% lighter
#5FC400
20% darker
#438F00
40% darker
#295D00
60% darker
#122F00
80% darker
#020800
100% darker
Build a full accessible scale from #7CFC00 in the shade generator.
Hues rotated around #7CFC00 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.
LawnGreen sits at 136 degrees. Rotating it a half turn lands on 316 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 LawnGreen at 106 and 166 degrees. They stay close enough to read as the same family, which is what you want for hover states, secondary surfaces and gradients.
136, 256 and 16 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 316 degrees, this pair flanks it at 286 and 346. You keep most of the contrast of a complementary pairing while losing the harshness.
Explore more combinations around LawnGreen on the color wheel.
The biggest shift is under achromatopsia, where #7CFC00 reads as #CFCFCE, 31.5 CIEDE2000 units away. If LawnGreen is the only thing marking a state or a series, roughly one viewer in twelve will miss it.
Protanopia
#FFD400
Deuteranopia
#FFCC09
Tritanopia
#88E1AF
Achromatopsia
#CFCFCE
The nearest CSS keywords to #7CFC00, ranked by perceptual distance rather than by how close their hex digits happen to look.