#9871B2

Closest named color: Dark Lilac (#9C6DA5). oklch(61.2% 0.105 311), rgb(152, 113, 178).

Aa

Black text reads best on this color (5.34:1).

About this color

#9871B2 is a medium-dark, moderately saturated purple. In OKLCH its lightness is 61%, its chroma 0.105 and its hue 311°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Lilac (#9C6DA5), ΔE 0.021 away. Black text reads best on it, at 5.34:1.

Hue familyPurples
Lightnessmedium-dark (61%)
Chromamoderately saturated (0.105)
Temperaturein between
Nearest nameDark Lilac (#9C6DA5)
Black text5.34:1
White text3.93:1

Values

HEX#9871B2
RGBrgb(152, 113, 178)
HSLhsl(276, 30%, 57%)
OKLCHoklch(61.2% 0.105 311)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #9871B2 3.93:1 AA large text Lc -72.1 Content text, not long reading
Black text on #9871B2 5.34:1 AA Lc 37.5 Non-text elements, placeholder text
#9871B2 text on white 3.93:1 AA large text Lc 66.6 Content text, not long reading
#9871B2 text on black 5.34:1 AA Lc -35.0 Non-text elements, placeholder text

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 500.

  1. Step 50

    50

    #F7F4F9

    oklch(97.1% 0.007 312.3)

  2. Step 100

    100

    #EDE7F1

    oklch(93.6% 0.015 312.2)

  3. Step 200

    200

    #DFD4E7

    oklch(88.4% 0.028 311.3)

  4. Step 300

    300

    #CBB8D9

    oklch(80.9% 0.05 310.9)

  5. Step 400

    400

    #B192C7

    oklch(70.7% 0.083 310.8)

  6. Step 500

    500 (this color)

    #9871B2

    oklch(61.2% 0.105 311)

  7. Step 600

    600

    #895FA4

    oklch(55.7% 0.113 311.2)

  8. Step 700

    700

    #744E8D

    oklch(49.2% 0.106 310.8)

  9. Step 800

    800

    #5E4072

    oklch(42.7% 0.087 310.7)

  10. Step 900

    900

    #4D375C

    oklch(37.8% 0.067 310.7)

  11. Step 950

    950

    #2D2036

    oklch(26.9% 0.044 310.7)

Export this scale for Tailwind in the Tailwind colors tool

#9871B2 with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#657EB40.079
Deuteranopia (no green cones)#6E81B00.073
Tritanopia (no blue cones)#957A890.075
Achromatopsia (no color)#8080800.105

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #9871B2

    #9871B2

    oklch(61.2% 0.105 311)

  • #6D914B

    #6D914B

    oklch(61.3% 0.106 131.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #9871B2

    #9871B2

    oklch(61.2% 0.105 311)

  • #797CC1

    #797CC1

    oklch(61.3% 0.104 281)

  • #AE6A96

    #AE6A96

    oklch(61.2% 0.104 341.4)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #9871B2

    #9871B2

    oklch(61.2% 0.105 311)

  • #918531

    #918531

    oklch(61.1% 0.105 101.2)

  • #40976F

    #40976F

    oklch(61.2% 0.105 160.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #9871B2

    #9871B2

    oklch(61.2% 0.105 311)

  • #AB7835

    #AB7835

    oklch(61.2% 0.105 70.9)

  • #049793

    #049793

    oklch(61.1% 0.104 191.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #9871B2

    #9871B2

    oklch(61.2% 0.105 311)

  • #B86D51

    #B86D51

    oklch(61.1% 0.104 41.1)

  • #6D914B

    #6D914B

    oklch(61.3% 0.106 131.2)

  • #1F92B0

    #1F92B0

    oklch(61.3% 0.105 220.7)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #9871B2, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #9871B2 in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.