#804FA5

Closest named color: Deep Lavender (#8D5EB7). oklch(52.1% 0.139 308.7), rgb(128, 79, 165).

Aa

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

About this color

#804FA5 is a medium-dark, moderately saturated purple. In OKLCH its lightness is 52%, its chroma 0.139 and its hue 309°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Deep Lavender (#8D5EB7), ΔE 0.049 away. White text reads best on it, at 5.86:1.

Hue familyPurples
Lightnessmedium-dark (52%)
Chromamoderately saturated (0.139)
Temperaturein between
Nearest nameDeep Lavender (#8D5EB7)
Black text3.57:1
White text5.86:1

Values

HEX#804FA5
RGBrgb(128, 79, 165)
HSLhsl(274, 35%, 48%)
OKLCHoklch(52.1% 0.139 308.7)

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 #804FA5 5.86:1 AA Lc -84.3 Fine for body text
Black text on #804FA5 3.57:1 AA large text Lc 25.0 Dividers and decoration only
#804FA5 text on white 5.86:1 AA Lc 79.1 Fine for body text
#804FA5 text on black 3.57:1 AA large text Lc -22.7 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

    #EDE7F4

    oklch(93.6% 0.018 306.7)

  3. Step 200

    200

    #E0D3EC

    oklch(88.5% 0.037 308.8)

  4. Step 300

    300

    #CDB5E2

    oklch(80.8% 0.067 309)

  5. Step 400

    400

    #B48ED4

    oklch(70.8% 0.108 308.7)

  6. Step 500

    500

    #A170C8

    oklch(63% 0.137 308.6)

  7. Step 600

    600

    #8C57B5

    oklch(55.6% 0.149 308.3)

  8. Step 700

    700 (this color)

    #804FA5

    oklch(52.1% 0.139 308.7)

  9. Step 800

    800

    #613A7E

    oklch(42.6% 0.115 308.8)

  10. Step 900

    900

    #4F3365

    oklch(37.7% 0.088 308.6)

  11. Step 950

    950

    #2E1E3B

    oklch(26.9% 0.056 308.5)

Export this scale for Tailwind in the Tailwind colors tool

#804FA5 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)#3763A80.111
Deuteranopia (no green cones)#4665A30.100
Tritanopia (no blue cones)#7B5E720.100
Achromatopsia (no color)#6565650.139

Harmonies

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

Complementary

The opposite hue (180°).

  • #804FA5

    #804FA5

    oklch(52.1% 0.139 308.7)

  • #507700

    #507700

    oklch(52% 0.137 128.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #804FA5

    #804FA5

    oklch(52.1% 0.139 308.7)

  • #595DB7

    #595DB7

    oklch(52.1% 0.139 278.5)

  • #9A4484

    #9A4484

    oklch(52% 0.139 338.3)

Open the analogous palette in the generator

Split complementary

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

  • #804FA5

    #804FA5

    oklch(52.1% 0.139 308.7)

  • #796900

    #796900

    oklch(52% 0.108 98.7)

  • #007D4E

    #007D4E

    oklch(52% 0.12 158.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #804FA5

    #804FA5

    oklch(52.1% 0.139 308.7)

  • #935B00

    #935B00

    oklch(52.2% 0.114 68.8)

  • #007973

    #007973

    oklch(51.9% 0.09 188.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #804FA5

    #804FA5

    oklch(52.1% 0.139 308.7)

  • #A94624

    #A94624

    oklch(52% 0.139 38.7)

  • #507700

    #507700

    oklch(52% 0.137 128.8)

  • #00758D

    #00758D

    oklch(52% 0.094 218.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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