#804A9E

Closest named color: Light Eggplant (#894585). oklch(50.9% 0.139 312.1), rgb(128, 74, 158).

Aa

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

About this color

#804A9E is a medium-dark, moderately saturated purple. In OKLCH its lightness is 51%, its chroma 0.139 and its hue 312°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Light Eggplant (#894585), ΔE 0.043 away. White text reads best on it, at 6.19:1.

Hue familyPurples
Lightnessmedium-dark (51%)
Chromamoderately saturated (0.139)
Temperaturein between
Nearest nameLight Eggplant (#894585)
Black text3.39:1
White text6.19:1

Values

HEX#804A9E
RGBrgb(128, 74, 158)
HSLhsl(279, 36%, 45%)
OKLCHoklch(50.9% 0.139 312.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 #804A9E 6.19:1 AA Lc -85.7 Fine for body text
Black text on #804A9E 3.39:1 AA large text Lc 23.5 Dividers and decoration only
#804A9E text on white 6.19:1 AA Lc 80.6 Fine for body text
#804A9E text on black 3.39:1 AA large text Lc -21.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

    #F7F4FA

    oklch(97.1% 0.009 308.4)

  2. Step 100

    100

    #EEE6F3

    oklch(93.5% 0.019 312.8)

  3. Step 200

    200

    #E2D3EB

    oklch(88.6% 0.036 313)

  4. Step 300

    300

    #CFB5E0

    oklch(80.9% 0.066 311.9)

  5. Step 400

    400

    #B78DD1

    oklch(70.7% 0.107 312)

  6. Step 500

    500

    #A56FC5

    oklch(63.1% 0.137 311.9)

  7. Step 600

    600

    #9055B1

    oklch(55.5% 0.149 312.1)

  8. Step 700

    700 (this color)

    #804A9E

    oklch(50.9% 0.139 312.1)

  9. Step 800

    800

    #64397C

    oklch(42.7% 0.116 312.1)

  10. Step 900

    900

    #513263

    oklch(37.7% 0.088 312)

  11. Step 950

    950

    #301E3A

    oklch(27.1% 0.055 312.7)

Export this scale for Tailwind in the Tailwind colors tool

#804A9E 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)#345EA10.118
Deuteranopia (no green cones)#45629C0.105
Tritanopia (no blue cones)#7D586D0.095
Achromatopsia (no color)#6161610.140

Harmonies

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

Complementary

The opposite hue (180°).

  • #804A9E

    #804A9E

    oklch(50.9% 0.139 312.1)

  • #467506

    #467506

    oklch(50.9% 0.139 132)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #804A9E

    #804A9E

    oklch(50.9% 0.139 312.1)

  • #5B58B2

    #5B58B2

    oklch(50.9% 0.139 281.8)

  • #99407B

    #99407B

    oklch(51% 0.138 342.6)

Open the analogous palette in the generator

Split complementary

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

  • #804A9E

    #804A9E

    oklch(50.9% 0.139 312.1)

  • #726700

    #726700

    oklch(50.8% 0.106 102.1)

  • #007952

    #007952

    oklch(50.9% 0.111 162.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #804A9E

    #804A9E

    oklch(50.9% 0.139 312.1)

  • #8B5A00

    #8B5A00

    oklch(50.9% 0.109 72.7)

  • #007573

    #007573

    oklch(50.8% 0.087 192.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #804A9E

    #804A9E

    oklch(50.9% 0.139 312.1)

  • #A44417

    #A44417

    oklch(50.9% 0.138 42.3)

  • #467506

    #467506

    oklch(50.9% 0.139 132)

  • #00718C

    #00718C

    oklch(50.9% 0.094 222)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #804A9E 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.