#9D5FA7

Closest named color: Dark Lilac (#9C6DA5). oklch(58.1% 0.127 321.9), rgb(157, 95, 167).

Aa

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

About this color

#9D5FA7 is a medium-dark, moderately saturated purple. In OKLCH its lightness is 58%, its chroma 0.127 and its hue 322°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Lilac (#9C6DA5), ΔE 0.036 away. Black text reads best on it, at 4.62:1.

Hue familyPurples
Lightnessmedium-dark (58%)
Chromamoderately saturated (0.127)
Temperaturein between
Nearest nameDark Lilac (#9C6DA5)
Black text4.62:1
White text4.53:1

Values

HEX#9D5FA7
RGBrgb(157, 95, 167)
HSLhsl(292, 29%, 51%)
OKLCHoklch(58.1% 0.127 321.9)

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 #9D5FA7 4.53:1 AA Lc -76.7 Fine for body text
Black text on #9D5FA7 4.62:1 AA Lc 32.8 Non-text elements, placeholder text
#9D5FA7 text on white 4.53:1 AA Lc 71.3 Content text, not long reading
#9D5FA7 text on black 4.62:1 AA Lc -30.4 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 600.

  1. Step 50

    50

    #F8F4F9

    oklch(97.2% 0.008 319.4)

  2. Step 100

    100

    #EFE6F1

    oklch(93.5% 0.018 320.1)

  3. Step 200

    200

    #E3D3E6

    oklch(88.5% 0.031 320.9)

  4. Step 300

    300

    #D3B5D7

    oklch(81% 0.057 322.3)

  5. Step 400

    400

    #BC8EC3

    oklch(70.8% 0.091 322)

  6. Step 500

    500

    #AA70B3

    oklch(63% 0.117 322)

  7. Step 600

    600 (this color)

    #9D5FA7

    oklch(58.1% 0.127 321.9)

  8. Step 700

    700

    #7F4788

    oklch(49% 0.118 321.9)

  9. Step 800

    800

    #673B6E

    oklch(42.6% 0.097 321.9)

  10. Step 900

    900

    #543359

    oklch(37.7% 0.075 322.1)

  11. Step 950

    950

    #311E34

    oklch(26.9% 0.048 321.9)

Export this scale for Tailwind in the Tailwind colors tool

#9D5FA7 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)#5672AA0.115
Deuteranopia (no green cones)#6679A50.105
Tritanopia (no blue cones)#9F687B0.079
Achromatopsia (no color)#7676760.128

Harmonies

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

Complementary

The opposite hue (180°).

  • #9D5FA7

    #9D5FA7

    oklch(58.1% 0.127 321.9)

  • #4A8D43

    #4A8D43

    oklch(58.1% 0.128 141.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #9D5FA7

    #9D5FA7

    oklch(58.1% 0.127 321.9)

  • #7D6BBF

    #7D6BBF

    oklch(58.2% 0.126 291.8)

  • #B25883

    #B25883

    oklch(58.2% 0.127 351.8)

Open the analogous palette in the generator

Split complementary

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

  • #9D5FA7

    #9D5FA7

    oklch(58.1% 0.127 321.9)

  • #7D8106

    #7D8106

    oklch(58% 0.127 111.9)

  • #009073

    #009073

    oklch(58.2% 0.113 171.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #9D5FA7

    #9D5FA7

    oklch(58.1% 0.127 321.9)

  • #9E7200

    #9E7200

    oklch(58.1% 0.12 81.6)

  • #008C93

    #008C93

    oklch(58.2% 0.099 201)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #9D5FA7

    #9D5FA7

    oklch(58.1% 0.127 321.9)

  • #B46229

    #B46229

    oklch(58.2% 0.127 51.9)

  • #4A8D43

    #4A8D43

    oklch(58.1% 0.128 141.9)

  • #0086B4

    #0086B4

    oklch(58.2% 0.118 231.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #9D5FA7 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.