#802A8E

Closest named color: Dark Magenta (#8B008B). oklch(45.6% 0.171 321.7), rgb(128, 42, 142).

Aa

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

About this color

#802A8E is a medium-dark, vivid purple. In OKLCH its lightness is 46%, its chroma 0.171 and its hue 322°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Magenta (#8B008B), ΔE 0.042 away. White text reads best on it, at 7.95:1.

Hue familyPurples
Lightnessmedium-dark (46%)
Chromavivid (0.171)
Temperaturein between
Nearest nameDark Magenta (#8B008B)
Black text2.63:1
White text7.95:1

Values

HEX#802A8E
RGBrgb(128, 42, 142)
HSLhsl(292, 54%, 36%)
OKLCHoklch(45.6% 0.171 321.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 #802A8E 7.95:1 AAA Lc -91.5 Preferred for body text
Black text on #802A8E 2.63:1 Fails Lc 17.3 Dividers and decoration only
#802A8E text on white 7.95:1 AAA Lc 86.7 Fine for body text
#802A8E text on black 2.63:1 Fails Lc -15.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 800.

  1. Step 50

    50

    #FAF3FB

    oklch(97.2% 0.013 321.9)

  2. Step 100

    100

    #F3E4F6

    oklch(93.6% 0.029 320.6)

  3. Step 200

    200

    #EBCEEF

    oklch(88.6% 0.054 322.2)

  4. Step 300

    300

    #DFABE7

    oklch(80.8% 0.1 321.9)

  5. Step 400

    400

    #CE7CDB

    oklch(70.8% 0.159 322)

  6. Step 500

    500

    #BF55D1

    oklch(63.1% 0.203 321.6)

  7. Step 600

    600

    #AB32BE

    oklch(55.6% 0.222 321.8)

  8. Step 700

    700

    #9222A4

    oklch(49% 0.206 321.6)

  9. Step 800

    800 (this color)

    #802A8E

    oklch(45.6% 0.171 321.7)

  10. Step 900

    900

    #60226A

    oklch(37.7% 0.132 321.9)

  11. Step 950

    950

    #38153E

    oklch(26.9% 0.084 321.6)

Export this scale for Tailwind in the Tailwind colors tool

#802A8E 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)#064B910.174
Deuteranopia (no green cones)#37548C0.147
Tritanopia (no blue cones)#813C590.103
Achromatopsia (no color)#5151510.172

Harmonies

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

Complementary

The opposite hue (180°).

  • #802A8E

    #802A8E

    oklch(45.6% 0.171 321.7)

  • #0C6A00

    #0C6A00

    oklch(45.6% 0.152 141.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #802A8E

    #802A8E

    oklch(45.6% 0.171 321.7)

  • #5C3BAC

    #5C3BAC

    oklch(45.6% 0.171 291.6)

  • #971A61

    #971A61

    oklch(45.7% 0.17 351.9)

Open the analogous palette in the generator

Split complementary

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

  • #802A8E

    #802A8E

    oklch(45.6% 0.171 321.7)

  • #595C00

    #595C00

    oklch(45.7% 0.101 112)

  • #006751

    #006751

    oklch(45.7% 0.089 171.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #802A8E

    #802A8E

    oklch(45.6% 0.171 321.7)

  • #715100

    #715100

    oklch(45.7% 0.094 82.2)

  • #006469

    #006469

    oklch(45.8% 0.078 200.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #802A8E

    #802A8E

    oklch(45.6% 0.171 321.7)

  • #884000

    #884000

    oklch(45.7% 0.117 52.1)

  • #0C6A00

    #0C6A00

    oklch(45.6% 0.152 141.7)

  • #005F81

    #005F81

    oklch(45.6% 0.093 231.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #802A8E 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.