#8E40B4

Closest named color: Purply (#983FB2). oklch(52.5% 0.184 312.8), rgb(142, 64, 180).

Aa

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

About this color

#8E40B4 is a medium-dark, vivid purple. In OKLCH its lightness is 53%, its chroma 0.184 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.020 away. White text reads best on it, at 5.92:1.

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

Values

HEX#8E40B4
RGBrgb(142, 64, 180)
HSLhsl(280, 48%, 48%)
OKLCHoklch(52.5% 0.184 312.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 #8E40B4 5.92:1 AA Lc -84.2 Fine for body text
Black text on #8E40B4 3.54:1 AA large text Lc 25.1 Dividers and decoration only
#8E40B4 text on white 5.92:1 AA Lc 79.0 Fine for body text
#8E40B4 text on black 3.54:1 AA large text Lc -22.8 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

    #EFE6F6

    oklch(93.7% 0.023 310.7)

  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

    #AC66D1

    oklch(63.1% 0.168 312.7)

  7. Step 600

    600 (this color)

    #8E40B4

    oklch(52.5% 0.184 312.8)

  8. Step 700

    700

    #813AA4

    oklch(49.1% 0.171 312.7)

  9. Step 800

    800

    #693185

    oklch(42.7% 0.141 312.7)

  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

#8E40B4 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)#0560B80.170
Deuteranopia (no green cones)#3866B10.148
Tritanopia (no blue cones)#8A56740.123
Achromatopsia (no color)#6464640.185

Harmonies

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

Complementary

The opposite hue (180°).

  • #8E40B4

    #8E40B4

    oklch(52.5% 0.184 312.8)

  • #467B00

    #467B00

    oklch(52.5% 0.148 132.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #8E40B4

    #8E40B4

    oklch(52.5% 0.184 312.8)

  • #6053CF

    #6053CF

    oklch(52.5% 0.184 282.8)

  • #AC2F86

    #AC2F86

    oklch(52.5% 0.184 342.7)

Open the analogous palette in the generator

Split complementary

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

  • #8E40B4

    #8E40B4

    oklch(52.5% 0.184 312.8)

  • #776C00

    #776C00

    oklch(52.5% 0.11 102.4)

  • #007E57

    #007E57

    oklch(52.5% 0.113 163)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #8E40B4

    #8E40B4

    oklch(52.5% 0.184 312.8)

  • #915E00

    #915E00

    oklch(52.5% 0.112 72.6)

  • #007A78

    #007A78

    oklch(52.4% 0.09 192.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #8E40B4

    #8E40B4

    oklch(52.5% 0.184 312.8)

  • #B04200

    #B04200

    oklch(52.4% 0.156 42.7)

  • #467B00

    #467B00

    oklch(52.5% 0.148 132.9)

  • #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 #8E40B4, closest first.

Similar named colors

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

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