#8240C6

Closest named color: Dark Orchid (#9932CC). oklch(52.3% 0.199 302.6), rgb(130, 64, 198).

Aa

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

About this color

#8240C6 is a medium-dark, vivid purple. In OKLCH its lightness is 52%, its chroma 0.199 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.00:1.

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

Values

HEX#8240C6
RGBrgb(130, 64, 198)
HSLhsl(270, 54%, 51%)
OKLCHoklch(52.3% 0.199 302.6)

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 #8240C6 6.00:1 AA Lc -84.6 Fine for body text
Black text on #8240C6 3.49:1 AA large text Lc 24.7 Dividers and decoration only
#8240C6 text on white 6.00:1 AA Lc 79.3 Fine for body text
#8240C6 text on black 3.49:1 AA large text Lc -22.5 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

    #CCB2F5

    oklch(80.9% 0.097 302.1)

  5. Step 400

    400

    #B486EF

    oklch(70.6% 0.155 302.9)

  6. Step 500

    500

    #A264EA

    oklch(63.2% 0.197 302.5)

  7. Step 600

    600

    #8E45D8

    oklch(55.6% 0.215 302.7)

  8. Step 700

    700 (this color)

    #8240C6

    oklch(52.3% 0.199 302.6)

  9. Step 800

    800

    #622E97

    oklch(42.7% 0.164 302.7)

  10. Step 900

    900

    #502B79

    oklch(37.8% 0.129 302.5)

  11. Step 950

    950

    #2F1A47

    oklch(27.1% 0.082 302.8)

Export this scale for Tailwind in the Tailwind colors tool

#8240C6 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)#0062CA0.149
Deuteranopia (no green cones)#0063C30.151
Tritanopia (no blue cones)#745F7E0.147
Achromatopsia (no color)#6363630.201

Harmonies

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

Complementary

The opposite hue (180°).

  • #8240C6

    #8240C6

    oklch(52.3% 0.199 302.6)

  • #5D7500

    #5D7500

    oklch(52.4% 0.128 122.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #8240C6

    #8240C6

    oklch(52.3% 0.199 302.6)

  • #4857DA

    #4857DA

    oklch(52.4% 0.199 272.5)

  • #A72B9A

    #A72B9A

    oklch(52.3% 0.199 332.7)

Open the analogous palette in the generator

Split complementary

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

  • #8240C6

    #8240C6

    oklch(52.3% 0.199 302.6)

  • #806700

    #806700

    oklch(52.3% 0.107 92.1)

  • #007F41

    #007F41

    oklch(52.3% 0.136 152.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #8240C6

    #8240C6

    oklch(52.3% 0.199 302.6)

  • #995700

    #995700

    oklch(52.2% 0.12 62.4)

  • #007B6E

    #007B6E

    oklch(52.3% 0.094 182.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #8240C6

    #8240C6

    oklch(52.3% 0.199 302.6)

  • #C12400

    #C12400

    oklch(52.4% 0.195 32.6)

  • #5D7500

    #5D7500

    oklch(52.4% 0.128 122.7)

  • #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 #8240C6, closest first.

Similar named colors

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

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