#9E40B1

Closest named color: Purply (#983FB2). oklch(54.4% 0.187 320.5), rgb(158, 64, 177).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-dark (54%)
Chromavivid (0.187)
Temperaturein between
Nearest namePurply (#983FB2)
Black text3.82:1
White text5.49:1

Values

HEX#9E40B1
RGBrgb(158, 64, 177)
HSLhsl(290, 47%, 47%)
OKLCHoklch(54.4% 0.187 320.5)

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 #9E40B1 5.49:1 AA Lc -82.0 Fine for body text
Black text on #9E40B1 3.82:1 AA large text Lc 27.4 Dividers and decoration only
#9E40B1 text on white 5.49:1 AA Lc 76.7 Fine for body text
#9E40B1 text on black 3.82:1 AA large text Lc -25.0 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 600.

  1. Step 50

    50

    #F9F3FA

    oklch(97.1% 0.011 321.3)

  2. Step 100

    100

    #F2E5F4

    oklch(93.7% 0.024 321.7)

  3. Step 200

    200

    #E8D0ED

    oklch(88.6% 0.047 320.4)

  4. Step 300

    300

    #DAAFE2

    oklch(80.9% 0.084 321)

  5. Step 400

    400

    #C683D4

    oklch(70.7% 0.135 320.5)

  6. Step 500

    500

    #B761C8

    oklch(63.2% 0.172 320.8)

  7. Step 600

    600 (this color)

    #9E40B1

    oklch(54.4% 0.187 320.5)

  8. Step 700

    700

    #8A349C

    oklch(49% 0.175 320.3)

  9. Step 800

    800

    #702D7E

    oklch(42.7% 0.143 320.3)

  10. Step 900

    900

    #5B2965

    oklch(37.6% 0.112 320.7)

  11. Step 950

    950

    #35193B

    oklch(26.9% 0.07 320.3)

Export this scale for Tailwind in the Tailwind colors tool

#9E40B1 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)#2262B40.185
Deuteranopia (no green cones)#4B6CAE0.158
Tritanopia (no blue cones)#9F53730.115
Achromatopsia (no color)#6969690.189

Harmonies

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

Complementary

The opposite hue (180°).

  • #9E40B1

    #9E40B1

    oklch(54.4% 0.187 320.5)

  • #228700

    #228700

    oklch(54.5% 0.177 140.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #9E40B1

    #9E40B1

    oklch(54.4% 0.187 320.5)

  • #7353D2

    #7353D2

    oklch(54.4% 0.187 290.4)

  • #BA307E

    #BA307E

    oklch(54.5% 0.188 350.6)

Open the analogous palette in the generator

Split complementary

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

  • #9E40B1

    #9E40B1

    oklch(54.4% 0.187 320.5)

  • #747500

    #747500

    oklch(54.3% 0.119 110.4)

  • #008467

    #008467

    oklch(54.6% 0.108 170.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #9E40B1

    #9E40B1

    oklch(54.4% 0.187 320.5)

  • #916700

    #916700

    oklch(54.3% 0.112 80.5)

  • #008086

    #008086

    oklch(54.5% 0.093 200.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #9E40B1

    #9E40B1

    oklch(54.4% 0.187 320.5)

  • #AF5100

    #AF5100

    oklch(54.4% 0.143 50.2)

  • #228700

    #228700

    oklch(54.5% 0.177 140.5)

  • #007AA3

    #007AA3

    oklch(54.3% 0.109 230.7)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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