#9B31A5

Closest named color: Purply (#983FB2). oklch(51.7% 0.195 324.2), rgb(155, 49, 165).

Aa

White text reads best on this color (6.21:1).

About this color

#9B31A5 is a medium-dark, vivid purple. In OKLCH its lightness is 52%, its chroma 0.195 and its hue 324°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Purply (#983FB2), ΔE 0.029 away. White text reads best on it, at 6.21:1.

Hue familyPurples
Lightnessmedium-dark (52%)
Chromavivid (0.195)
Temperaturein between
Nearest namePurply (#983FB2)
Black text3.37:1
White text6.21:1

Values

HEX#9B31A5
RGBrgb(155, 49, 165)
HSLhsl(295, 54%, 42%)
OKLCHoklch(51.7% 0.195 324.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 #9B31A5 6.21:1 AA Lc -85.2 Fine for body text
Black text on #9B31A5 3.37:1 AA large text Lc 24.0 Dividers and decoration only
#9B31A5 text on white 6.21:1 AA Lc 80.0 Fine for body text
#9B31A5 text on black 3.37:1 AA large text Lc -21.8 Dividers and decoration only

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 700.

  1. Step 50

    50

    #FAF3FA

    oklch(97.2% 0.012 325.7)

  2. Step 100

    100

    #F3E4F4

    oklch(93.5% 0.027 323.9)

  3. Step 200

    200

    #EBCEED

    oklch(88.5% 0.052 324)

  4. Step 300

    300

    #DFACE3

    oklch(80.8% 0.094 324)

  5. Step 400

    400

    #CE7DD5

    oklch(70.6% 0.151 324.1)

  6. Step 500

    500

    #C058C9

    oklch(63.2% 0.192 324.4)

  7. Step 600

    600

    #AB37B6

    oklch(55.6% 0.209 324.2)

  8. Step 700

    700 (this color)

    #9B31A5

    oklch(51.7% 0.195 324.2)

  9. Step 800

    800

    #77237F

    oklch(42.6% 0.162 324.2)

  10. Step 900

    900

    #602466

    oklch(37.7% 0.125 324)

  11. Step 950

    950

    #39163C

    oklch(27.1% 0.08 324.4)

Export this scale for Tailwind in the Tailwind colors tool

#9B31A5 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)#1059A80.203
Deuteranopia (no green cones)#4665A20.171
Tritanopia (no blue cones)#9E44680.113
Achromatopsia (no color)#6161610.196

Harmonies

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

Complementary

The opposite hue (180°).

  • #9B31A5

    #9B31A5

    oklch(51.7% 0.195 324.2)

  • #007F19

    #007F19

    oklch(51.8% 0.167 144.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #9B31A5

    #9B31A5

    oklch(51.7% 0.195 324.2)

  • #7345CA

    #7345CA

    oklch(51.7% 0.195 294.4)

  • #B51D6F

    #B51D6F

    oklch(51.7% 0.195 354.3)

Open the analogous palette in the generator

Split complementary

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

  • #9B31A5

    #9B31A5

    oklch(51.7% 0.195 324.2)

  • #686F00

    #686F00

    oklch(51.8% 0.116 114.1)

  • #007A64

    #007A64

    oklch(51.7% 0.098 174.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #9B31A5

    #9B31A5

    oklch(51.7% 0.195 324.2)

  • #846200

    #846200

    oklch(51.7% 0.106 84.8)

  • #00767F

    #00767F

    oklch(51.6% 0.088 204.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #9B31A5

    #9B31A5

    oklch(51.7% 0.195 324.2)

  • #9F4F00

    #9F4F00

    oklch(51.7% 0.129 54.1)

  • #007F19

    #007F19

    oklch(51.8% 0.167 144.2)

  • #00719D

    #00719D

    oklch(51.7% 0.109 234.4)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #9B31A5.

Similar named colors

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

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