#8040C8

Closest named color: Dark Orchid (#9932CC). oklch(52.3% 0.201 301.2), rgb(128, 64, 200).

Aa

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

About this color

#8040C8 is a medium-dark, vivid purple. In OKLCH its lightness is 52%, its chroma 0.201 and its hue 301°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Orchid (#9932CC), ΔE 0.050 away. White text reads best on it, at 6.02:1.

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

Values

HEX#8040C8
RGBrgb(128, 64, 200)
HSLhsl(268, 55%, 52%)
OKLCHoklch(52.3% 0.201 301.2)

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 #8040C8 6.02:1 AA Lc -84.7 Fine for body text
Black text on #8040C8 3.48:1 AA large text Lc 24.6 Dividers and decoration only
#8040C8 text on white 6.02:1 AA Lc 79.4 Fine for body text
#8040C8 text on black 3.48:1 AA large text Lc -22.4 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

    #DFD1F8

    oklch(88.4% 0.055 301.6)

  4. Step 300

    300

    #CBB2F6

    oklch(80.9% 0.098 301.1)

  5. Step 400

    400

    #B287F1

    oklch(70.7% 0.155 301.3)

  6. Step 500

    500

    #A064EC

    oklch(63.1% 0.199 301.3)

  7. Step 600

    600

    #8C45DA

    oklch(55.6% 0.216 301.5)

  8. Step 700

    700 (this color)

    #8040C8

    oklch(52.3% 0.201 301.2)

  9. Step 800

    800

    #612E99

    oklch(42.8% 0.166 301.5)

  10. Step 900

    900

    #4F2B7A

    oklch(37.8% 0.13 301.4)

  11. Step 950

    950

    #2E1A47

    oklch(27% 0.082 301.7)

Export this scale for Tailwind in the Tailwind colors tool

#8040C8 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)#0062CC0.146
Deuteranopia (no green cones)#0062C50.147
Tritanopia (no blue cones)#71607F0.150
Achromatopsia (no color)#6363630.202

Harmonies

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

Complementary

The opposite hue (180°).

  • #8040C8

    #8040C8

    oklch(52.3% 0.201 301.2)

  • #5F7400

    #5F7400

    oklch(52.3% 0.126 121.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #8040C8

    #8040C8

    oklch(52.3% 0.201 301.2)

  • #4457DB

    #4457DB

    oklch(52.3% 0.201 271.3)

  • #A62A9D

    #A62A9D

    oklch(52.3% 0.202 331.3)

Open the analogous palette in the generator

Split complementary

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

  • #8040C8

    #8040C8

    oklch(52.3% 0.201 301.2)

  • #806600

    #806600

    oklch(52.1% 0.107 91.2)

  • #007F3D

    #007F3D

    oklch(52.2% 0.139 151.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #8040C8

    #8040C8

    oklch(52.3% 0.201 301.2)

  • #9A5600

    #9A5600

    oklch(52.2% 0.121 61.2)

  • #007B6D

    #007B6D

    oklch(52.3% 0.094 181.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #8040C8

    #8040C8

    oklch(52.3% 0.201 301.2)

  • #C31C02

    #C31C02

    oklch(52.3% 0.201 31.2)

  • #5F7400

    #5F7400

    oklch(52.3% 0.126 121.3)

  • #007787

    #007787

    oklch(52.2% 0.091 211)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #8040C8 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.