Inspect Beige (#F5F5DC) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.
Beige
#F5F5DC
Black text reads best on this background, at 18.98:1.
Beige is one of the 148 CSS named colors, and resolves to #F5F5DC in every browser. In numbers that is rgb(245, 245, 220) and hsl(60, 56%, 91%). Perceptually it is a very light, near-neutral color: OKLCH puts its lightness at 96% and its chroma at 0.033. It carries almost no chroma, so it behaves as a neutral rather than as a hue, and belongs with the off-whites.
White text only reaches 1.11:1 here, so black text is the safer pairing at 18.98:1. Because it is this light, Beige works best as a page or card background with dark text over it.
The closest CSS named colors to Beige, measured with CIEDE2000, are LightYellow (#FFFFE0), Cornsilk (#FFF8DC), Ivory (#FFFFF0). If Beige is not quite right, those are the nearest keywords to try before reaching for a custom value.
HEX
#F5F5DC
RGB
rgb(245, 245, 220)
HSL
hsl(60, 56%, 91%)
HWB
hwb(60 86% 4%)
CMYK
cmyk(0%, 0%, 10%, 4%)
LAB
lab(96.04 -3.11 12.09)
LCH
lch(96.04 12.49 104.44)
OKLCH
oklch(96.36% 0.0328 107)
WCAG asks for 4.5:1 between body text and its background. On #F5F5DC white text measures 1.11:1 and black text 18.98:1, so black clears it and white does not.
White text on Beige
WCAG 2.2
1.11:1
APCA
Lc 0
Fails AA body text
Fails AAA body text
Fails AA large text
Black text on Beige
WCAG 2.2
18.98:1
APCA
Lc 99
Passes AA body text
Passes AAA body text
Passes AA large text
Check Beige against any other color in the contrast checker.
Beige sits at 96% 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.
#BEBEA6
20% darker
#8A8A73
40% darker
#595944
60% darker
#2D2C19
80% darker
#070600
100% darker
Build a full accessible scale from #F5F5DC in the shade generator.
Hues rotated around #F5F5DC 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.
Beige 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 Beige 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 Beige on the color wheel.
The biggest shift is under tritanopia, where #F5F5DC reads as #F9F1ED, 10.7 CIEDE2000 units away. If Beige is the only thing marking a state or a series, roughly one viewer in twelve will miss it.
Protanopia
#FAF3DB
Deuteranopia
#FBF4DD
Tritanopia
#F9F1ED
Achromatopsia
#F3F3F3
The nearest CSS keywords to #F5F5DC, ranked by perceptual distance rather than by how close their hex digits happen to look.