#8E42A6

Closest named color: Purply (#983FB2). oklch(51.9% 0.166 317.3), rgb(142, 66, 166).

Aa

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

About this color

#8E42A6 is a medium-dark, vivid purple. In OKLCH its lightness is 52%, its chroma 0.166 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.027 away. White text reads best on it, at 6.03:1.

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

Values

HEX#8E42A6
RGBrgb(142, 66, 166)
HSLhsl(286, 43%, 45%)
OKLCHoklch(51.9% 0.166 317.3)

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 #8E42A6 6.03:1 AA Lc -84.8 Fine for body text
Black text on #8E42A6 3.48:1 AA large text Lc 24.5 Dividers and decoration only
#8E42A6 text on white 6.03:1 AA Lc 79.6 Fine for body text
#8E42A6 text on black 3.48:1 AA large text Lc -22.2 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

    #F8F3FA

    oklch(97% 0.011 316.5)

  2. Step 100

    100

    #F0E5F4

    oklch(93.5% 0.023 317.1)

  3. Step 200

    200

    #E6D0ED

    oklch(88.4% 0.046 318)

  4. Step 300

    300

    #D6B1E3

    oklch(80.9% 0.08 317.2)

  5. Step 400

    400

    #C186D5

    oklch(70.7% 0.128 317.3)

  6. Step 500

    500

    #B165CA

    oklch(63.2% 0.165 317.3)

  7. Step 600

    600

    #9C49B6

    oklch(55.6% 0.178 317.4)

  8. Step 700

    700 (this color)

    #8E42A6

    oklch(51.9% 0.166 317.3)

  9. Step 800

    800

    #6C307F

    oklch(42.6% 0.138 317.3)

  10. Step 900

    900

    #582C66

    oklch(37.7% 0.107 317.4)

  11. Step 950

    950

    #341A3C

    oklch(27% 0.069 317.8)

Export this scale for Tailwind in the Tailwind colors tool

#8E42A6 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)#275EA90.156
Deuteranopia (no green cones)#4565A30.136
Tritanopia (no blue cones)#8D536E0.107
Achromatopsia (no color)#6363630.167

Harmonies

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

Complementary

The opposite hue (180°).

  • #8E42A6

    #8E42A6

    oklch(51.9% 0.166 317.3)

  • #347C00

    #347C00

    oklch(51.9% 0.158 137.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #8E42A6

    #8E42A6

    oklch(51.9% 0.166 317.3)

  • #6653C1

    #6653C1

    oklch(52% 0.165 287.1)

  • #A8357A

    #A8357A

    oklch(51.9% 0.166 347.5)

Open the analogous palette in the generator

Split complementary

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

  • #8E42A6

    #8E42A6

    oklch(51.9% 0.166 317.3)

  • #706C00

    #706C00

    oklch(51.8% 0.111 107.2)

  • #007C5C

    #007C5C

    oklch(52% 0.107 167.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #8E42A6

    #8E42A6

    oklch(51.9% 0.166 317.3)

  • #8B5F00

    #8B5F00

    oklch(51.9% 0.109 77.2)

  • #00787A

    #00787A

    oklch(51.9% 0.088 196.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #8E42A6

    #8E42A6

    oklch(51.9% 0.166 317.3)

  • #A84800

    #A84800

    oklch(52% 0.143 47.2)

  • #347C00

    #347C00

    oklch(51.9% 0.158 137.3)

  • #007395

    #007395

    oklch(51.8% 0.1 227.2)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #8E42A6.

Similar named colors

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

Use #8E42A6 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.