#8E40B3

Closest named color: Purply (#983FB2). oklch(52.5% 0.183 313.1), rgb(142, 64, 179).

Aa

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

About this color

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

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

Values

HEX#8E40B3
RGBrgb(142, 64, 179)
HSLhsl(281, 47%, 48%)
OKLCHoklch(52.5% 0.183 313.1)

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 #8E40B3 5.94:1 AA Lc -84.3 Fine for body text
Black text on #8E40B3 3.53:1 AA large text Lc 25.0 Dividers and decoration only
#8E40B3 text on white 5.94:1 AA Lc 79.1 Fine for body text
#8E40B3 text on black 3.53:1 AA large text Lc -22.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 600.

  1. Step 50

    50

    #F8F3FB

    oklch(97% 0.012 313.2)

  2. Step 100

    100

    #EFE6F5

    oklch(93.6% 0.022 312.2)

  3. Step 200

    200

    #E4D1EF

    oklch(88.5% 0.045 313.3)

  4. Step 300

    300

    #D3B1E7

    oklch(80.8% 0.083 312.8)

  5. Step 400

    400

    #BD87DB

    oklch(70.7% 0.132 312.8)

  6. Step 500

    500

    #AC66D0

    oklch(63% 0.167 313)

  7. Step 600

    600 (this color)

    #8E40B3

    oklch(52.5% 0.183 313.1)

  8. Step 700

    700

    #813AA3

    oklch(49% 0.17 313)

  9. Step 800

    800

    #693184

    oklch(42.6% 0.14 313.1)

  10. Step 900

    900

    #552C6A

    oklch(37.6% 0.11 312.8)

  11. Step 950

    950

    #321B3E

    oklch(27% 0.069 313)

Export this scale for Tailwind in the Tailwind colors tool

#8E40B3 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)#0960B70.170
Deuteranopia (no green cones)#3966B00.148
Tritanopia (no blue cones)#8A56740.122
Achromatopsia (no color)#6464640.184

Harmonies

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

Complementary

The opposite hue (180°).

  • #8E40B3

    #8E40B3

    oklch(52.5% 0.183 313.1)

  • #457B00

    #457B00

    oklch(52.4% 0.148 133.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #8E40B3

    #8E40B3

    oklch(52.5% 0.183 313.1)

  • #6153CE

    #6153CE

    oklch(52.5% 0.183 283.3)

  • #AC3085

    #AC3085

    oklch(52.5% 0.182 343.2)

Open the analogous palette in the generator

Split complementary

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

  • #8E40B3

    #8E40B3

    oklch(52.5% 0.183 313.1)

  • #766C00

    #766C00

    oklch(52.4% 0.11 103.1)

  • #007E57

    #007E57

    oklch(52.5% 0.113 163)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #8E40B3

    #8E40B3

    oklch(52.5% 0.183 313.1)

  • #915E00

    #915E00

    oklch(52.5% 0.112 72.6)

  • #007A79

    #007A79

    oklch(52.4% 0.09 193.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #8E40B3

    #8E40B3

    oklch(52.5% 0.183 313.1)

  • #B04300

    #B04300

    oklch(52.6% 0.155 43.1)

  • #457B00

    #457B00

    oklch(52.4% 0.148 133.2)

  • #007693

    #007693

    oklch(52.5% 0.098 222.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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