Inspect Tan (#D2B48C) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.
Tan
#D2B48C
Black text reads best on this background, at 10.65:1.
Tan is one of the 148 CSS named colors, and resolves to #D2B48C in every browser. In numbers that is rgb(210, 180, 140) and hsl(34, 44%, 69%). Perceptually it is a light, muted color: OKLCH puts its lightness at 79% and its chroma at 0.064. It sits in the oranges at 75 degrees of OKLCH hue, and reads as a warm color.
White text only reaches 1.97:1 here, so black text is the safer pairing at 10.65:1. That combination of lightness and chroma makes it a workable mid-tone, the kind of value that lands in the middle of a shade scale.
The closest CSS named colors to Tan, measured with CIEDE2000, are BurlyWood (#DEB887), Wheat (#F5DEB3), NavajoWhite (#FFDEAD). If Tan is not quite right, those are the nearest keywords to try before reaching for a custom value.
HEX
#D2B48C
RGB
rgb(210, 180, 140)
HSL
hsl(34, 44%, 69%)
HWB
hwb(34 55% 18%)
CMYK
cmyk(0%, 14%, 33%, 18%)
LAB
lab(75.23 6.93 24.68)
LCH
lch(75.23 25.63 74.32)
OKLCH
oklch(78.62% 0.0638 74.62)
WCAG asks for 4.5:1 between body text and its background. On #D2B48C white text measures 1.97:1 and black text 10.65:1, so black clears it and white does not.
White text on Tan
WCAG 2.2
1.97:1
APCA
Lc 42
Fails AA body text
Fails AAA body text
Fails AA large text
Black text on Tan
WCAG 2.2
10.65:1
APCA
Lc 65
Passes AA body text
Passes AAA body text
Passes AA large text
Check Tan against any other color in the contrast checker.
Tan sits at 79% OKLCH lightness. Holding its hue and chroma and moving only that value carries it up to #FFF7ED and down to #0B0500, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.
#DFC098
20% lighter
#ECCDA4
40% lighter
#F8D9B0
60% lighter
#FFE8C9
80% lighter
#FFF7ED
100% lighter
#A78B64
20% darker
#7F643E
40% darker
#583F19
60% darker
#311E00
80% darker
#0B0500
100% darker
Build a full accessible scale from #D2B48C in the shade generator.
Hues rotated around #D2B48C 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.
Tan sits at 75 degrees. Rotating it a half turn lands on 255 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 Tan at 45 and 105 degrees. They stay close enough to read as the same family, which is what you want for hover states, secondary surfaces and gradients.
75, 195 and 315 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 255 degrees, this pair flanks it at 225 and 285. You keep most of the contrast of a complementary pairing while losing the harshness.
Explore more combinations around Tan on the color wheel.
The biggest shift is under tritanopia, where #D2B48C reads as #E1ACA8, 17.9 CIEDE2000 units away. If Tan is the only thing marking a state or a series, roughly one viewer in twelve will miss it.
Protanopia
#C1B38A
Deuteranopia
#C8BB8D
Tritanopia
#E1ACA8
Achromatopsia
#B8B7B7
The nearest CSS keywords to #D2B48C, ranked by perceptual distance rather than by how close their hex digits happen to look.