Inspect Wheat (#F5DEB3) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.
Wheat
#F5DEB3
Black text reads best on this background, at 15.98:1.
Wheat is one of the 148 CSS named colors, and resolves to #F5DEB3 in every browser. In numbers that is rgb(245, 222, 179) and hsl(39, 77%, 83%). Perceptually it is a very light, muted color: OKLCH puts its lightness at 91% and its chroma at 0.061. It sits in the yellows at 83 degrees of OKLCH hue, and reads as a warm color.
White text only reaches 1.31:1 here, so black text is the safer pairing at 15.98:1. Because it is this light, Wheat works best as a page or card background with dark text over it.
The closest CSS named colors to Wheat, measured with CIEDE2000, are Moccasin (#FFE4B5), NavajoWhite (#FFDEAD), Bisque (#FFE4C4). If Wheat is not quite right, those are the nearest keywords to try before reaching for a custom value.
HEX
#F5DEB3
RGB
rgb(245, 222, 179)
HSL
hsl(39, 77%, 83%)
HWB
hwb(39 70% 4%)
CMYK
cmyk(0%, 9%, 27%, 4%)
LAB
lab(89.59 3.48 24.21)
LCH
lch(89.59 24.46 81.83)
OKLCH
oklch(90.88% 0.0615 83.03)
WCAG asks for 4.5:1 between body text and its background. On #F5DEB3 white text measures 1.31:1 and black text 15.98:1, so black clears it and white does not.
White text on Wheat
WCAG 2.2
1.31:1
APCA
Lc 17
Fails AA body text
Fails AAA body text
Fails AA large text
Black text on Wheat
WCAG 2.2
15.98:1
APCA
Lc 88
Passes AA body text
Passes AAA body text
Passes AA large text
Check Wheat against any other color in the contrast checker.
Wheat sits at 91% OKLCH lightness. Holding its hue and chroma and moving only that value carries it up to #FFF8EA and down to #0A0500, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.
#FAE3B8
20% lighter
#FFE7BC
40% lighter
#FFEDCB
60% lighter
#FFF2DB
80% lighter
#FFF8EA
100% lighter
#C1AB82
20% darker
#907B53
40% darker
#624E27
60% darker
#362500
80% darker
#0A0500
100% darker
Build a full accessible scale from #F5DEB3 in the shade generator.
Hues rotated around #F5DEB3 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.
Wheat sits at 83 degrees. Rotating it a half turn lands on 263 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 Wheat at 53 and 113 degrees. They stay close enough to read as the same family, which is what you want for hover states, secondary surfaces and gradients.
83, 203 and 323 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 263 degrees, this pair flanks it at 233 and 293. You keep most of the contrast of a complementary pairing while losing the harshness.
Explore more combinations around Wheat on the color wheel.
The biggest shift is under tritanopia, where #F5DEB3 reads as #FFD6D1, 18.4 CIEDE2000 units away. If Wheat is the only thing marking a state or a series, roughly one viewer in twelve will miss it.
Protanopia
#EADCB1
Deuteranopia
#F0E2B4
Tritanopia
#FFD6D1
Achromatopsia
#E0E0E0
The nearest CSS keywords to #F5DEB3, ranked by perceptual distance rather than by how close their hex digits happen to look.