Inspect Thistle (#D8BFD8) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.
Thistle
#D8BFD8
Black text reads best on this background, at 12.36:1.
Thistle is one of the 148 CSS named colors, and resolves to #D8BFD8 in every browser. In numbers that is rgb(216, 191, 216) and hsl(300, 24%, 80%). Perceptually it is a light, muted color: OKLCH puts its lightness at 83% and its chroma at 0.044. It sits in the purples at 326 degrees of OKLCH hue, and reads as a cool color.
White text only reaches 1.7:1 here, so black text is the safer pairing at 12.36: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 Thistle, measured with CIEDE2000, are Pink (#FFC0CB), Plum (#DDA0DD), Lavender (#E6E6FA). If Thistle is not quite right, those are the nearest keywords to try before reaching for a custom value.
HEX
#D8BFD8
RGB
rgb(216, 191, 216)
HSL
hsl(300, 24%, 80%)
HWB
hwb(300 75% 15%)
CMYK
cmyk(0%, 12%, 0%, 15%)
LAB
lab(80.06 12.41 -9.14)
LCH
lch(80.06 15.41 323.63)
OKLCH
oklch(83.33% 0.0439 325.96)
WCAG asks for 4.5:1 between body text and its background. On #D8BFD8 white text measures 1.7:1 and black text 12.36:1, so black clears it and white does not.
White text on Thistle
WCAG 2.2
1.7:1
APCA
Lc 34
Fails AA body text
Fails AAA body text
Fails AA large text
Black text on Thistle
WCAG 2.2
12.36:1
APCA
Lc 73
Passes AA body text
Passes AAA body text
Passes AA large text
Check Thistle against any other color in the contrast checker.
Thistle sits at 83% OKLCH lightness. Holding its hue and chroma and moving only that value carries it up to #FFF5FF and down to #0D010E, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.
#E2C8E2
20% lighter
#EBD2EB
40% lighter
#F5DBF5
60% lighter
#FFE5FF
80% lighter
#FFF5FF
100% lighter
#AA93AA
20% darker
#7F687F
40% darker
#564156
60% darker
#301D30
80% darker
#0D010E
100% darker
Build a full accessible scale from #D8BFD8 in the shade generator.
Hues rotated around #D8BFD8 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.
Thistle sits at 326 degrees. Rotating it a half turn lands on 146 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 Thistle at 296 and 356 degrees. They stay close enough to read as the same family, which is what you want for hover states, secondary surfaces and gradients.
326, 86 and 206 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 146 degrees, this pair flanks it at 116 and 176. You keep most of the contrast of a complementary pairing while losing the harshness.
Explore more combinations around Thistle on the color wheel.
The biggest shift is under achromatopsia, where #D8BFD8 reads as #C6C6C6, 14.6 CIEDE2000 units away. If Thistle is the only thing marking a state or a series, roughly one viewer in twelve will miss it.
Protanopia
#BEC4D9
Deuteranopia
#C2C7D7
Tritanopia
#DAC1C7
Achromatopsia
#C6C6C6
The nearest CSS keywords to #D8BFD8, ranked by perceptual distance rather than by how close their hex digits happen to look.