#9F51E5

Closest named color: Lighter Purple (#A55AF4). oklch(60% 0.217 304.9), rgb(159, 81, 229).

Aa

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

About this color

#9F51E5 is a medium-dark, vivid purple. In OKLCH its lightness is 60%, its chroma 0.217 and its hue 305°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Lighter Purple (#A55AF4), ΔE 0.030 away. Black text reads best on it, at 4.78:1.

Hue familyPurples
Lightnessmedium-dark (60%)
Chromavivid (0.217)
Temperaturein between
Nearest nameLighter Purple (#A55AF4)
Black text4.78:1
White text4.39:1

Values

HEX#9F51E5
RGBrgb(159, 81, 229)
HSLhsl(272, 74%, 61%)
OKLCHoklch(60% 0.217 304.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 #9F51E5 4.39:1 AA large text Lc -75.3 Fine for body text
Black text on #9F51E5 4.78:1 AA Lc 34.3 Non-text elements, placeholder text
#9F51E5 text on white 4.39:1 AA large text Lc 69.8 Content text, not long reading
#9F51E5 text on black 4.78:1 AA Lc -31.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

    #F7F3FD

    oklch(97% 0.014 304.1)

  2. Step 100

    100

    #EEE5FB

    oklch(93.5% 0.031 304.3)

  3. Step 200

    200

    #E2D0F9

    oklch(88.5% 0.059 305.1)

  4. Step 300

    300

    #D0AFF8

    oklch(80.8% 0.107 304.8)

  5. Step 400

    400

    #B982F4

    oklch(70.7% 0.168 304.7)

  6. Step 500

    500 (this color)

    #9F51E5

    oklch(60% 0.217 304.9)

  7. Step 600

    600

    #9539DE

    oklch(55.6% 0.236 305.2)

  8. Step 700

    700

    #7F29C1

    oklch(49.1% 0.219 305)

  9. Step 800

    800

    #67259C

    oklch(42.7% 0.181 305)

  10. Step 900

    900

    #54257C

    oklch(37.7% 0.142 305.3)

  11. Step 950

    950

    #311749

    oklch(27% 0.091 305)

Export this scale for Tailwind in the Tailwind colors tool

#9F51E5 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)#0076EA0.174
Deuteranopia (no green cones)#2679E20.166
Tritanopia (no blue cones)#9271940.157
Achromatopsia (no color)#7878780.218

Harmonies

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

Complementary

The opposite hue (180°).

  • #9F51E5

    #9F51E5

    oklch(60% 0.217 304.9)

  • #6C8E00

    #6C8E00

    oklch(59.9% 0.15 124.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #9F51E5

    #9F51E5

    oklch(60% 0.217 304.9)

  • #606AFE

    #606AFE

    oklch(60% 0.217 274.9)

  • #C83BB2

    #C83BB2

    oklch(60% 0.217 335)

Open the analogous palette in the generator

Split complementary

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

  • #9F51E5

    #9F51E5

    oklch(60% 0.217 304.9)

  • #977E00

    #977E00

    oklch(59.9% 0.123 95)

  • #009957

    #009957

    oklch(60% 0.148 155)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #9F51E5

    #9F51E5

    oklch(60% 0.217 304.9)

  • #B66C00

    #B66C00

    oklch(60% 0.135 64.8)

  • #009488

    #009488

    oklch(59.9% 0.106 184.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #9F51E5

    #9F51E5

    oklch(60% 0.217 304.9)

  • #E23900

    #E23900

    oklch(60% 0.212 34.8)

  • #6C8E00

    #6C8E00

    oklch(59.9% 0.15 124.8)

  • #008FA7

    #008FA7

    oklch(59.8% 0.106 215.1)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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