#9871B4

Closest named color: Deep Lilac (#966EBD). oklch(61.3% 0.107 310.2), rgb(152, 113, 180).

Aa

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

About this color

#9871B4 is a medium-dark, moderately saturated purple. In OKLCH its lightness is 61%, its chroma 0.107 and its hue 310°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Deep Lilac (#966EBD), ΔE 0.018 away. Black text reads best on it, at 5.35:1.

Hue familyPurples
Lightnessmedium-dark (61%)
Chromamoderately saturated (0.107)
Temperaturein between
Nearest nameDeep Lilac (#966EBD)
Black text5.35:1
White text3.92:1

Values

HEX#9871B4
RGBrgb(152, 113, 180)
HSLhsl(275, 31%, 57%)
OKLCHoklch(61.3% 0.107 310.2)

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 #9871B4 3.92:1 AA large text Lc -72.0 Content text, not long reading
Black text on #9871B4 5.35:1 AA Lc 37.6 Non-text elements, placeholder text
#9871B4 text on white 3.92:1 AA large text Lc 66.5 Content text, not long reading
#9871B4 text on black 5.35:1 AA Lc -35.1 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

    #EDE7F2

    oklch(93.6% 0.016 310.1)

  3. Step 200

    200

    #DFD4E8

    oklch(88.5% 0.03 310.1)

  4. Step 300

    300

    #CBB8DA

    oklch(80.9% 0.051 310.2)

  5. Step 400

    400

    #B192C8

    oklch(70.7% 0.084 310.4)

  6. Step 500

    500 (this color)

    #9871B4

    oklch(61.3% 0.107 310.2)

  7. Step 600

    600

    #885EA6

    oklch(55.5% 0.117 309.9)

  8. Step 700

    700

    #744D8E

    oklch(49.1% 0.109 310.6)

  9. Step 800

    800

    #5E4073

    oklch(42.7% 0.089 310.2)

  10. Step 900

    900

    #4D365D

    oklch(37.6% 0.07 310.4)

  11. Step 950

    950

    #2D2037

    oklch(27% 0.045 309.5)

Export this scale for Tailwind in the Tailwind colors tool

#9871B4 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)#647FB70.080
Deuteranopia (no green cones)#6D81B20.074
Tritanopia (no blue cones)#957B8A0.078
Achromatopsia (no color)#8181810.108

Harmonies

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

Complementary

The opposite hue (180°).

  • #9871B4

    #9871B4

    oklch(61.3% 0.107 310.2)

  • #6E9149

    #6E9149

    oklch(61.3% 0.107 130.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #9871B4

    #9871B4

    oklch(61.3% 0.107 310.2)

  • #787CC3

    #787CC3

    oklch(61.3% 0.107 280.3)

  • #AF6998

    #AF6998

    oklch(61.3% 0.108 340.3)

Open the analogous palette in the generator

Split complementary

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

  • #9871B4

    #9871B4

    oklch(61.3% 0.107 310.2)

  • #93852E

    #93852E

    oklch(61.2% 0.107 100.1)

  • #3F986E

    #3F986E

    oklch(61.4% 0.107 160.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #9871B4

    #9871B4

    oklch(61.3% 0.107 310.2)

  • #AD7833

    #AD7833

    oklch(61.4% 0.107 70.3)

  • #009892

    #009892

    oklch(61.3% 0.106 189.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #9871B4

    #9871B4

    oklch(61.3% 0.107 310.2)

  • #BA6C51

    #BA6C51

    oklch(61.2% 0.107 39.8)

  • #6E9149

    #6E9149

    oklch(61.3% 0.107 130.3)

  • #1792B1

    #1792B1

    oklch(61.2% 0.108 220.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #9871B4 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.