Inspect LightYellow (#FFFFE0) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.
LightYellow
#FFFFE0
Black text reads best on this background, at 20.63:1.
LightYellow is one of the 148 CSS named colors, and resolves to #FFFFE0 in every browser. In numbers that is rgb(255, 255, 224) and hsl(60, 100%, 94%). Perceptually it is a very light, muted color: OKLCH puts its lightness at 99% and its chroma at 0.04. It sits in the yellows at 107 degrees of OKLCH hue, and reads as a warm color.
White text only reaches 1.02:1 here, so black text is the safer pairing at 20.63:1. Because it is this light, LightYellow works best as a page or card background with dark text over it.
The closest CSS named colors to LightYellow, measured with CIEDE2000, are Beige (#F5F5DC), LightGoldenRodYellow (#FAFAD2), Cornsilk (#FFF8DC). If LightYellow is not quite right, those are the nearest keywords to try before reaching for a custom value.
HEX
#FFFFE0
RGB
rgb(255, 255, 224)
HSL
hsl(60, 100%, 94%)
HWB
hwb(60 88% 0%)
CMYK
cmyk(0%, 0%, 12%, 0%)
LAB
lab(99.4 -3.79 14.89)
LCH
lch(99.4 15.36 104.29)
OKLCH
oklch(99.2% 0.0402 107.11)
WCAG asks for 4.5:1 between body text and its background. On #FFFFE0 white text measures 1.02:1 and black text 20.63:1, so black clears it and white does not.
White text on LightYellow
WCAG 2.2
1.02:1
APCA
Lc 0
Fails AA body text
Fails AAA body text
Fails AA large text
Black text on LightYellow
WCAG 2.2
20.63:1
APCA
Lc 104
Passes AA body text
Passes AAA body text
Passes AA large text
Check LightYellow against any other color in the contrast checker.
LightYellow sits at 99% OKLCH lightness. Holding its hue and chroma and moving only that value carries it down to #070600, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.
#C6C6A8
20% darker
#8F8F73
40% darker
#5D5C42
60% darker
#2F2E15
80% darker
#070600
100% darker
Build a full accessible scale from #FFFFE0 in the shade generator.
Hues rotated around #FFFFE0 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.
LightYellow sits at 107 degrees. Rotating it a half turn lands on 287 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 LightYellow at 77 and 137 degrees. They stay close enough to read as the same family, which is what you want for hover states, secondary surfaces and gradients.
107, 227 and 347 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 287 degrees, this pair flanks it at 257 and 317. You keep most of the contrast of a complementary pairing while losing the harshness.
Explore more combinations around LightYellow on the color wheel.
The biggest shift is under achromatopsia, where #FFFFE0 reads as #FDFDFD, 12.1 CIEDE2000 units away. If LightYellow is the only thing marking a state or a series, roughly one viewer in twelve will miss it.
Protanopia
#FFFCDE
Deuteranopia
#FFFEE1
Tritanopia
#FFFAF6
Achromatopsia
#FDFDFD
The nearest CSS keywords to #FFFFE0, ranked by perceptual distance rather than by how close their hex digits happen to look.