#9A42B7

Closest named color: Purply (#983FB2). oklch(54.5% 0.188 316.8), rgb(154, 66, 183).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-dark (55%)
Chromavivid (0.188)
Temperaturein between
Nearest namePurply (#983FB2)
Black text3.83:1
White text5.47:1

Values

HEX#9A42B7
RGBrgb(154, 66, 183)
HSLhsl(285, 47%, 49%)
OKLCHoklch(54.5% 0.188 316.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 #9A42B7 5.47:1 AA Lc -82.0 Fine for body text
Black text on #9A42B7 3.83:1 AA large text Lc 27.4 Dividers and decoration only
#9A42B7 text on white 5.47:1 AA Lc 76.6 Fine for body text
#9A42B7 text on black 3.83:1 AA large text Lc -25.1 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

    #F9F3FB

    oklch(97.1% 0.012 317.7)

  2. Step 100

    100

    #F1E5F5

    oklch(93.6% 0.025 317.7)

  3. Step 200

    200

    #E6D0EE

    oklch(88.5% 0.047 317.1)

  4. Step 300

    300

    #D7B0E5

    oklch(80.9% 0.084 317)

  5. Step 400

    400

    #C284D8

    oklch(70.6% 0.136 316.9)

  6. Step 500

    500

    #B262CE

    oklch(63% 0.174 316.7)

  7. Step 600

    600 (this color)

    #9A42B7

    oklch(54.5% 0.188 316.8)

  8. Step 700

    700

    #8736A1

    oklch(49.2% 0.176 316.9)

  9. Step 800

    800

    #6D2E82

    oklch(42.6% 0.144 316.7)

  10. Step 900

    900

    #592A69

    oklch(37.7% 0.114 316.8)

  11. Step 950

    950

    #341A3D

    oklch(27.1% 0.07 316.8)

Export this scale for Tailwind in the Tailwind colors tool

#9A42B7 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)#1964BB0.181
Deuteranopia (no green cones)#446CB40.156
Tritanopia (no blue cones)#9957770.121
Achromatopsia (no color)#6969690.190

Harmonies

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

Complementary

The opposite hue (180°).

  • #9A42B7

    #9A42B7

    oklch(54.5% 0.188 316.8)

  • #3B8400

    #3B8400

    oklch(54.5% 0.164 136.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #9A42B7

    #9A42B7

    oklch(54.5% 0.188 316.8)

  • #6D56D6

    #6D56D6

    oklch(54.6% 0.188 286.7)

  • #B73185

    #B73185

    oklch(54.4% 0.188 346.7)

Open the analogous palette in the generator

Split complementary

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

  • #9A42B7

    #9A42B7

    oklch(54.5% 0.188 316.8)

  • #797400

    #797400

    oklch(54.6% 0.117 106.7)

  • #008462

    #008462

    oklch(54.4% 0.112 167)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #9A42B7

    #9A42B7

    oklch(54.5% 0.188 316.8)

  • #956600

    #956600

    oklch(54.6% 0.114 77.1)

  • #008082

    #008082

    oklch(54.4% 0.093 196.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #9A42B7

    #9A42B7

    oklch(54.5% 0.188 316.8)

  • #B44D00

    #B44D00

    oklch(54.6% 0.151 46.9)

  • #3B8400

    #3B8400

    oklch(54.5% 0.164 136.7)

  • #007C9F

    #007C9F

    oklch(54.6% 0.105 226.3)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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