#9A42A6

Closest named color: Purply (#983FB2). oklch(53.5% 0.172 322.7), rgb(154, 66, 166).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-dark (53%)
Chromavivid (0.172)
Temperaturein between
Nearest namePurply (#983FB2)
Black text3.70:1
White text5.66:1

Values

HEX#9A42A6
RGBrgb(154, 66, 166)
HSLhsl(293, 43%, 45%)
OKLCHoklch(53.5% 0.172 322.7)

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 #9A42A6 5.66:1 AA Lc -83.0 Fine for body text
Black text on #9A42A6 3.70:1 AA large text Lc 26.3 Dividers and decoration only
#9A42A6 text on white 5.66:1 AA Lc 77.7 Fine for body text
#9A42A6 text on black 3.70:1 AA large text Lc -24.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

    #F1E5F3

    oklch(93.5% 0.023 321.4)

  3. Step 200

    200

    #E7D0EA

    oklch(88.4% 0.043 322.3)

  4. Step 300

    300

    #D9B0DE

    oklch(80.8% 0.078 322.7)

  5. Step 400

    400

    #C585CE

    oklch(70.6% 0.125 322.4)

  6. Step 500

    500

    #B664C1

    oklch(63.1% 0.16 322.7)

  7. Step 600

    600 (this color)

    #9A42A6

    oklch(53.5% 0.172 322.7)

  8. Step 700

    700

    #893994

    oklch(49% 0.16 322.7)

  9. Step 800

    800

    #703078

    oklch(42.7% 0.133 323.1)

  10. Step 900

    900

    #5B2C61

    oklch(37.8% 0.103 323)

  11. Step 950

    950

    #351A39

    oklch(27% 0.066 322.3)

Export this scale for Tailwind in the Tailwind colors tool

#9A42A6 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)#2F60A90.169
Deuteranopia (no green cones)#4F6AA30.147
Tritanopia (no blue cones)#9C516E0.103
Achromatopsia (no color)#6767670.173

Harmonies

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

Complementary

The opposite hue (180°).

  • #9A42A6

    #9A42A6

    oklch(53.5% 0.172 322.7)

  • #148414

    #148414

    oklch(53.4% 0.172 142.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #9A42A6

    #9A42A6

    oklch(53.5% 0.172 322.7)

  • #7353C6

    #7353C6

    oklch(53.5% 0.172 292.5)

  • #B33576

    #B33576

    oklch(53.5% 0.173 352.9)

Open the analogous palette in the generator

Split complementary

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

  • #9A42A6

    #9A42A6

    oklch(53.5% 0.172 322.7)

  • #6F7400

    #6F7400

    oklch(53.7% 0.119 112.7)

  • #008067

    #008067

    oklch(53.5% 0.103 172.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #9A42A6

    #9A42A6

    oklch(53.5% 0.172 322.7)

  • #8C6600

    #8C6600

    oklch(53.5% 0.11 82.9)

  • #007C84

    #007C84

    oklch(53.4% 0.091 202.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #9A42A6

    #9A42A6

    oklch(53.5% 0.172 322.7)

  • #A85200

    #A85200

    oklch(53.5% 0.136 52.9)

  • #148414

    #148414

    oklch(53.4% 0.172 142.7)

  • #0077A2

    #0077A2

    oklch(53.5% 0.11 232.6)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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