#9872CD

Closest named color: Medium Purple (#9370DB). oklch(62.7% 0.138 301.8), rgb(152, 114, 205).

Aa

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

About this color

#9872CD 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 Medium Purple (#9370DB), ΔE 0.024 away. Black text reads best on it, at 5.62:1.

Hue familyPurples
Lightnessmedium-light (63%)
Chromamoderately saturated (0.138)
Temperaturein between
Nearest nameMedium Purple (#9370DB)
Black text5.62:1
White text3.73:1

Values

HEX#9872CD
RGBrgb(152, 114, 205)
HSLhsl(265, 48%, 63%)
OKLCHoklch(62.7% 0.138 301.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 #9872CD 3.73:1 AA large text Lc -70.2 Content text, not long reading
Black text on #9872CD 5.62:1 AA Lc 39.3 Non-text elements, placeholder text
#9872CD text on white 3.73:1 AA large text Lc 64.7 Content text, not long reading
#9872CD text on black 5.62:1 AA Lc -36.9 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

    #DDD4EE

    oklch(88.5% 0.037 301.4)

  4. Step 300

    300

    #C8B7E6

    oklch(80.9% 0.068 301.4)

  5. Step 400

    400

    #AD90D9

    oklch(70.7% 0.108 302)

  6. Step 500

    500 (this color)

    #9872CD

    oklch(62.7% 0.138 301.8)

  7. Step 600

    600

    #845ABB

    oklch(55.6% 0.149 301.7)

  8. Step 700

    700

    #7049A1

    oklch(49.1% 0.139 302)

  9. Step 800

    800

    #5B3D83

    oklch(42.8% 0.115 301.5)

  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

#9872CD 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)#5983D00.092
Deuteranopia (no green cones)#6284CB0.085
Tritanopia (no blue cones)#8E82960.106
Achromatopsia (no color)#8484840.138

Harmonies

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

Complementary

The opposite hue (180°).

  • #9872CD

    #9872CD

    oklch(62.7% 0.138 301.8)

  • #7B9524

    #7B9524

    oklch(62.8% 0.138 122)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #9872CD

    #9872CD

    oklch(62.7% 0.138 301.8)

  • #6C81DB

    #6C81DB

    oklch(62.8% 0.138 272)

  • #B766AD

    #B766AD

    oklch(62.6% 0.138 331.8)

Open the analogous palette in the generator

Split complementary

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

  • #9872CD

    #9872CD

    oklch(62.7% 0.138 301.8)

  • #A48500

    #A48500

    oklch(62.8% 0.128 92.3)

  • #389F5D

    #389F5D

    oklch(62.6% 0.137 152)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #9872CD

    #9872CD

    oklch(62.7% 0.138 301.8)

  • #C27217

    #C27217

    oklch(62.7% 0.137 61.8)

  • #009E8D

    #009E8D

    oklch(62.7% 0.113 181.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #9872CD

    #9872CD

    oklch(62.7% 0.138 301.8)

  • #CE6551

    #CE6551

    oklch(62.8% 0.137 32.2)

  • #7B9524

    #7B9524

    oklch(62.8% 0.138 122)

  • #0099AE

    #0099AE

    oklch(62.7% 0.109 211.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #9872CD 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.