#8240C4

Closest named color: Dark Orchid (#9932CC). oklch(52.2% 0.197 303.1), rgb(130, 64, 196).

Aa

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

About this color

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

Hue familyPurples
Lightnessmedium-dark (52%)
Chromavivid (0.197)
Temperaturein between
Nearest nameDark Orchid (#9932CC)
Black text3.47:1
White text6.03:1

Values

HEX#8240C4
RGBrgb(130, 64, 196)
HSLhsl(270, 53%, 51%)
OKLCHoklch(52.2% 0.197 303.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 #8240C4 6.03:1 AA Lc -84.7 Fine for body text
Black text on #8240C4 3.47:1 AA large text Lc 24.6 Dividers and decoration only
#8240C4 text on white 6.03:1 AA Lc 79.5 Fine for body text
#8240C4 text on black 3.47:1 AA large text Lc -22.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 700.

  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

    #A264E8

    oklch(63.1% 0.194 302.9)

  7. Step 600

    600

    #8E46D6

    oklch(55.6% 0.211 303)

  8. Step 700

    700 (this color)

    #8240C4

    oklch(52.2% 0.197 303.1)

  9. Step 800

    800

    #622E96

    oklch(42.6% 0.163 303)

  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

#8240C4 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)#0061C80.149
Deuteranopia (no green cones)#0162C10.151
Tritanopia (no blue cones)#755E7D0.144
Achromatopsia (no color)#6363630.198

Harmonies

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

Complementary

The opposite hue (180°).

  • #8240C4

    #8240C4

    oklch(52.2% 0.197 303.1)

  • #5C7500

    #5C7500

    oklch(52.3% 0.129 123.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #8240C4

    #8240C4

    oklch(52.2% 0.197 303.1)

  • #4956D8

    #4956D8

    oklch(52.1% 0.197 273.1)

  • #A62B98

    #A62B98

    oklch(52.1% 0.197 333.1)

Open the analogous palette in the generator

Split complementary

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

  • #8240C4

    #8240C4

    oklch(52.2% 0.197 303.1)

  • #7F6700

    #7F6700

    oklch(52.2% 0.107 92.8)

  • #007F42

    #007F42

    oklch(52.3% 0.135 153)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #8240C4

    #8240C4

    oklch(52.2% 0.197 303.1)

  • #985700

    #985700

    oklch(52.1% 0.119 62.9)

  • #007B6F

    #007B6F

    oklch(52.3% 0.093 183.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #8240C4

    #8240C4

    oklch(52.2% 0.197 303.1)

  • #BF2600

    #BF2600

    oklch(52.2% 0.192 33)

  • #5C7500

    #5C7500

    oklch(52.3% 0.129 123.2)

  • #007789

    #007789

    oklch(52.3% 0.091 212.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #8240C4 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.