#8940D1

Closest named color: Dark Orchid (#9932CC). oklch(54% 0.212 302.9), rgb(137, 64, 209).

Aa

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

About this color

#8940D1 is a medium-dark, vivid purple. In OKLCH its lightness is 54%, its chroma 0.212 and its hue 303°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Orchid (#9932CC), ΔE 0.036 away. White text reads best on it, at 5.64:1.

Hue familyPurples
Lightnessmedium-dark (54%)
Chromavivid (0.212)
Temperaturein between
Nearest nameDark Orchid (#9932CC)
Black text3.71:1
White text5.64:1

Values

HEX#8940D1
RGBrgb(137, 64, 209)
HSLhsl(270, 61%, 54%)
OKLCHoklch(54% 0.212 302.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 #8940D1 5.64:1 AA Lc -82.8 Fine for body text
Black text on #8940D1 3.71:1 AA large text Lc 26.6 Dividers and decoration only
#8940D1 text on white 5.64:1 AA Lc 77.5 Fine for body text
#8940D1 text on black 3.71:1 AA large text Lc -24.3 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

    #F7F4FD

    oklch(97.2% 0.012 301.3)

  2. Step 100

    100

    #EDE6FA

    oklch(93.6% 0.028 301.7)

  3. Step 200

    200

    #E0D1F7

    oklch(88.5% 0.054 303.2)

  4. Step 300

    300

    #CDB2F4

    oklch(80.9% 0.096 303)

  5. Step 400

    400

    #B487EE

    oklch(70.8% 0.152 302.9)

  6. Step 500

    500

    #A264E9

    oklch(63.1% 0.196 302.7)

  7. Step 600

    600 (this color)

    #8940D1

    oklch(54% 0.212 302.9)

  8. Step 700

    700

    #7936BA

    oklch(49.2% 0.197 302.9)

  9. Step 800

    800

    #622E97

    oklch(42.7% 0.164 302.7)

  10. Step 900

    900

    #502B78

    oklch(37.8% 0.127 302.9)

  11. Step 950

    950

    #2F1A46

    oklch(27% 0.081 303.5)

Export this scale for Tailwind in the Tailwind colors tool

#8940D1 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)#0066D50.158
Deuteranopia (no green cones)#0067CE0.160
Tritanopia (no blue cones)#7A62840.155
Achromatopsia (no color)#6767670.214

Harmonies

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

Complementary

The opposite hue (180°).

  • #8940D1

    #8940D1

    oklch(54% 0.212 302.9)

  • #617A00

    #617A00

    oklch(54% 0.132 122.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #8940D1

    #8940D1

    oklch(54% 0.212 302.9)

  • #4B59E7

    #4B59E7

    oklch(54% 0.212 272.7)

  • #B028A2

    #B028A2

    oklch(53.9% 0.213 332.8)

Open the analogous palette in the generator

Split complementary

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

  • #8940D1

    #8940D1

    oklch(54% 0.212 302.9)

  • #856C00

    #856C00

    oklch(54% 0.111 92.8)

  • #008545

    #008545

    oklch(54.1% 0.139 152.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #8940D1

    #8940D1

    oklch(54% 0.212 302.9)

  • #A05C00

    #A05C00

    oklch(54.1% 0.123 63)

  • #008074

    #008074

    oklch(53.9% 0.096 183.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #8940D1

    #8940D1

    oklch(54% 0.212 302.9)

  • #C82700

    #C82700

    oklch(53.9% 0.2 32.8)

  • #617A00

    #617A00

    oklch(54% 0.132 122.7)

  • #007C8F

    #007C8F

    oklch(53.9% 0.094 213.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #8940D1 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.