#9871DB

Closest named color: Medium Purple (#9370DB). oklch(63.3% 0.157 298.8), rgb(152, 113, 219).

Aa

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

About this color

#9871DB is a medium-light, vivid purple. In OKLCH its lightness is 63%, its chroma 0.157 and its hue 299°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Medium Purple (#9370DB), ΔE 0.009 away. Black text reads best on it, at 5.72:1.

Hue familyPurples
Lightnessmedium-light (63%)
Chromavivid (0.157)
Temperaturein between
Nearest nameMedium Purple (#9370DB)
Black text5.72:1
White text3.67:1

Values

HEX#9871DB
RGBrgb(152, 113, 219)
HSLhsl(262, 60%, 65%)
OKLCHoklch(63.3% 0.157 298.8)

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 #9871DB 3.67:1 AA large text Lc -69.6 Content text, not long reading
Black text on #9871DB 5.72:1 AA Lc 40.0 Non-text elements, placeholder text
#9871DB text on white 3.67:1 AA large text Lc 64.1 Content text, not long reading
#9871DB text on black 5.72:1 AA Lc -37.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

    #F6F4FC

    oklch(97.1% 0.011 297.6)

  2. Step 100

    100

    #EBE7F7

    oklch(93.6% 0.022 297.4)

  3. Step 200

    200

    #DCD4F2

    oklch(88.6% 0.042 297.7)

  4. Step 300

    300

    #C7B6EC

    oklch(80.9% 0.077 299.1)

  5. Step 400

    400

    #AB8FE3

    oklch(70.8% 0.123 298.6)

  6. Step 500

    500 (this color)

    #9871DB

    oklch(63.3% 0.157 298.8)

  7. Step 600

    600

    #8356C8

    oklch(55.7% 0.171 298.9)

  8. Step 700

    700

    #6F45AD

    oklch(49.1% 0.16 299)

  9. Step 800

    800

    #5A3A8C

    oklch(42.8% 0.131 298.7)

  10. Step 900

    900

    #4A3370

    oklch(37.9% 0.102 298.8)

  11. Step 950

    950

    #2B1E41

    oklch(26.9% 0.064 299.2)

Export this scale for Tailwind in the Tailwind colors tool

#9871DB 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)#4E85DF0.103
Deuteranopia (no green cones)#5784D80.096
Tritanopia (no blue cones)#8A859C0.123
Achromatopsia (no color)#8585850.158

Harmonies

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

Complementary

The opposite hue (180°).

  • #9871DB

    #9871DB

    oklch(63.3% 0.157 298.8)

  • #819600

    #819600

    oklch(63.4% 0.149 119.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #9871DB

    #9871DB

    oklch(63.3% 0.157 298.8)

  • #6382E9

    #6382E9

    oklch(63.3% 0.158 268.9)

  • #BC63B8

    #BC63B8

    oklch(63.3% 0.156 328.9)

Open the analogous palette in the generator

Split complementary

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

  • #9871DB

    #9871DB

    oklch(63.3% 0.157 298.8)

  • #AA8500

    #AA8500

    oklch(63.4% 0.13 88.9)

  • #30A351

    #30A351

    oklch(63.3% 0.157 148.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #9871DB

    #9871DB

    oklch(63.3% 0.157 298.8)

  • #CB6F00

    #CB6F00

    oklch(63.3% 0.15 58.7)

  • #00A18B

    #00A18B

    oklch(63.5% 0.116 178.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #9871DB

    #9871DB

    oklch(63.3% 0.157 298.8)

  • #D95E50

    #D95E50

    oklch(63.4% 0.158 28.8)

  • #819600

    #819600

    oklch(63.4% 0.149 119.2)

  • #009CAD

    #009CAD

    oklch(63.4% 0.109 208.4)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #9871DB.

Similar named colors

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

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