#8C42A2

Closest named color: Purply (#983FB2). oklch(51.4% 0.161 317.9), rgb(140, 66, 162).

Aa

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

About this color

#8C42A2 is a medium-dark, vivid purple. In OKLCH its lightness is 51%, its chroma 0.161 and its hue 318°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Purply (#983FB2), ΔE 0.034 away. White text reads best on it, at 6.14:1.

Hue familyPurples
Lightnessmedium-dark (51%)
Chromavivid (0.161)
Temperaturein between
Nearest namePurply (#983FB2)
Black text3.41:1
White text6.14:1

Values

HEX#8C42A2
RGBrgb(140, 66, 162)
HSLhsl(286, 42%, 45%)
OKLCHoklch(51.4% 0.161 317.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 #8C42A2 6.14:1 AA Lc -85.3 Fine for body text
Black text on #8C42A2 3.41:1 AA large text Lc 23.9 Dividers and decoration only
#8C42A2 text on white 6.14:1 AA Lc 80.2 Fine for body text
#8C42A2 text on black 3.41:1 AA large text Lc -21.7 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

    #E5D1EC

    oklch(88.5% 0.042 317.4)

  4. Step 300

    300

    #D6B1E2

    oklch(80.9% 0.079 317.8)

  5. Step 400

    400

    #C187D3

    oklch(70.8% 0.124 318)

  6. Step 500

    500

    #B066C7

    oklch(63% 0.159 317.8)

  7. Step 600

    600

    #9C4BB4

    oklch(55.7% 0.173 317.9)

  8. Step 700

    700 (this color)

    #8C42A2

    oklch(51.4% 0.161 317.9)

  9. Step 800

    800

    #6C327D

    oklch(42.7% 0.132 318)

  10. Step 900

    900

    #582D65

    oklch(37.8% 0.104 317.9)

  11. Step 950

    950

    #331B3B

    oklch(27% 0.065 317.2)

Export this scale for Tailwind in the Tailwind colors tool

#8C42A2 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)#2A5DA50.152
Deuteranopia (no green cones)#4664A00.132
Tritanopia (no blue cones)#8C526C0.103
Achromatopsia (no color)#6161610.163

Harmonies

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

Complementary

The opposite hue (180°).

  • #8C42A2

    #8C42A2

    oklch(51.4% 0.161 317.9)

  • #317B00

    #317B00

    oklch(51.5% 0.159 137.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #8C42A2

    #8C42A2

    oklch(51.4% 0.161 317.9)

  • #6652BD

    #6652BD

    oklch(51.5% 0.161 288)

  • #A53678

    #A53678

    oklch(51.4% 0.161 347.6)

Open the analogous palette in the generator

Split complementary

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

  • #8C42A2

    #8C42A2

    oklch(51.4% 0.161 317.9)

  • #6E6B00

    #6E6B00

    oklch(51.4% 0.111 107.8)

  • #007A5B

    #007A5B

    oklch(51.4% 0.105 167.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #8C42A2

    #8C42A2

    oklch(51.4% 0.161 317.9)

  • #895E00

    #895E00

    oklch(51.5% 0.107 77.6)

  • #007679

    #007679

    oklch(51.3% 0.087 197.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #8C42A2

    #8C42A2

    oklch(51.4% 0.161 317.9)

  • #A54800

    #A54800

    oklch(51.5% 0.14 48)

  • #317B00

    #317B00

    oklch(51.5% 0.159 137.8)

  • #007294

    #007294

    oklch(51.5% 0.1 227.4)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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