#9871CC

Closest named color: Deep Lilac (#966EBD). oklch(62.5% 0.138 302.4), rgb(152, 113, 204).

Aa

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

About this color

#9871CC is a medium-light, moderately saturated purple. In OKLCH its lightness is 63%, its chroma 0.138 and its hue 302°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Deep Lilac (#966EBD), ΔE 0.023 away. Black text reads best on it, at 5.56:1.

Hue familyPurples
Lightnessmedium-light (63%)
Chromamoderately saturated (0.138)
Temperaturein between
Nearest nameDeep Lilac (#966EBD)
Black text5.56:1
White text3.77:1

Values

HEX#9871CC
RGBrgb(152, 113, 204)
HSLhsl(266, 47%, 62%)
OKLCHoklch(62.5% 0.138 302.4)

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 #9871CC 3.77:1 AA large text Lc -70.6 Content text, not long reading
Black text on #9871CC 5.56:1 AA Lc 39.0 Non-text elements, placeholder text
#9871CC text on white 3.77:1 AA large text Lc 65.1 Content text, not long reading
#9871CC text on black 5.56:1 AA Lc -36.6 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

    #F6F4FB

    oklch(97.1% 0.009 299.2)

  2. Step 100

    100

    #ECE7F5

    oklch(93.6% 0.019 302.2)

  3. Step 200

    200

    #DED4EE

    oklch(88.6% 0.037 303.1)

  4. Step 300

    300

    #C9B7E5

    oklch(81% 0.067 302.8)

  5. Step 400

    400

    #AD90D9

    oklch(70.7% 0.108 302)

  6. Step 500

    500 (this color)

    #9871CC

    oklch(62.5% 0.138 302.4)

  7. Step 600

    600

    #8559BB

    oklch(55.6% 0.151 302.5)

  8. Step 700

    700

    #7149A1

    oklch(49.2% 0.139 302.6)

  9. Step 800

    800

    #5C3C83

    oklch(42.7% 0.117 302.6)

  10. Step 900

    900

    #4B3469

    oklch(37.7% 0.091 302.3)

  11. Step 950

    950

    #2C1F3D

    oklch(27% 0.056 302.8)

Export this scale for Tailwind in the Tailwind colors tool

#9871CC 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)#5883CF0.094
Deuteranopia (no green cones)#6183CA0.087
Tritanopia (no blue cones)#8F81950.105
Achromatopsia (no color)#8383830.139

Harmonies

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

Complementary

The opposite hue (180°).

  • #9871CC

    #9871CC

    oklch(62.5% 0.138 302.4)

  • #799423

    #799423

    oklch(62.4% 0.138 122.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #9871CC

    #9871CC

    oklch(62.5% 0.138 302.4)

  • #6C80DA

    #6C80DA

    oklch(62.5% 0.137 272.4)

  • #B765AC

    #B765AC

    oklch(62.4% 0.139 332.2)

Open the analogous palette in the generator

Split complementary

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

  • #9871CC

    #9871CC

    oklch(62.5% 0.138 302.4)

  • #A38400

    #A38400

    oklch(62.4% 0.128 92.2)

  • #359F5D

    #359F5D

    oklch(62.6% 0.138 152.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #9871CC

    #9871CC

    oklch(62.5% 0.138 302.4)

  • #C17213

    #C17213

    oklch(62.6% 0.138 62.7)

  • #009D8D

    #009D8D

    oklch(62.5% 0.112 182.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #9871CC

    #9871CC

    oklch(62.5% 0.138 302.4)

  • #CD6450

    #CD6450

    oklch(62.5% 0.138 32.3)

  • #799423

    #799423

    oklch(62.4% 0.138 122.5)

  • #0098AE

    #0098AE

    oklch(62.4% 0.109 212.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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