#5A2D80

Closest named color: Rebecca Purple (#663399). oklch(39.9% 0.137 306.1), rgb(90, 45, 128).

Aa

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

About this color

#5A2D80 is a dark, moderately saturated purple. In OKLCH its lightness is 40%, its chroma 0.137 and its hue 306°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Rebecca Purple (#663399), ΔE 0.048 away. White text reads best on it, at 9.89:1.

Hue familyPurples
Lightnessdark (40%)
Chromamoderately saturated (0.137)
Temperaturein between
Nearest nameRebecca Purple (#663399)
Black text2.12:1
White text9.89:1

Values

HEX#5A2D80
RGBrgb(90, 45, 128)
HSLhsl(273, 48%, 34%)
OKLCHoklch(39.9% 0.137 306.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 #5A2D80 9.89:1 AAA Lc -96.7 Preferred for body text
Black text on #5A2D80 2.12:1 Fails Lc 11.5 Not readable
#5A2D80 text on white 9.89:1 AAA Lc 92.5 Preferred for body text
#5A2D80 text on black 2.12:1 Fails Lc -9.9 Not readable

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 900.

  1. Step 50

    50

    #F8F3FD

    oklch(97.1% 0.014 308.3)

  2. Step 100

    100

    #EFE5FA

    oklch(93.6% 0.03 307.1)

  3. Step 200

    200

    #E2D0F8

    oklch(88.5% 0.057 305.6)

  4. Step 300

    300

    #D1B0F5

    oklch(81% 0.101 306.1)

  5. Step 400

    400

    #BA82F0

    oklch(70.6% 0.164 306.1)

  6. Step 500

    500

    #AA5DEB

    oklch(63.1% 0.21 306.3)

  7. Step 600

    600

    #953CD9

    oklch(55.5% 0.228 306)

  8. Step 700

    700

    #7F2CBC

    oklch(49% 0.211 306)

  9. Step 800

    800

    #672798

    oklch(42.6% 0.175 306)

  10. Step 900

    900 (this color)

    #5A2D80

    oklch(39.9% 0.137 306.1)

  11. Step 950

    950

    #311847

    oklch(27% 0.086 306)

Export this scale for Tailwind in the Tailwind colors tool

#5A2D80 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)#0042830.115
Deuteranopia (no green cones)#1B437E0.103
Tritanopia (no blue cones)#543E520.098
Achromatopsia (no color)#4343430.138

Harmonies

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

Complementary

The opposite hue (180°).

  • #5A2D80

    #5A2D80

    oklch(39.9% 0.137 306.1)

  • #3A5000

    #3A5000

    oklch(39.8% 0.101 125.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5A2D80

    #5A2D80

    oklch(39.9% 0.137 306.1)

  • #363B8F

    #363B8F

    oklch(39.9% 0.137 275.7)

  • #712163

    #712163

    oklch(39.8% 0.137 335.6)

Open the analogous palette in the generator

Split complementary

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

  • #5A2D80

    #5A2D80

    oklch(39.9% 0.137 306.1)

  • #554700

    #554700

    oklch(40% 0.082 96.2)

  • #005630

    #005630

    oklch(39.8% 0.097 155.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5A2D80

    #5A2D80

    oklch(39.9% 0.137 306.1)

  • #673C00

    #673C00

    oklch(39.9% 0.089 66.1)

  • #00534D

    #00534D

    oklch(39.8% 0.07 186.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5A2D80

    #5A2D80

    oklch(39.9% 0.137 306.1)

  • #802000

    #802000

    oklch(39.8% 0.136 36.2)

  • #3A5000

    #3A5000

    oklch(39.8% 0.101 125.7)

  • #005060

    #005060

    oklch(39.8% 0.071 217.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #5A2D80 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.