#5A2154

Closest named color: Grape Purple (#5D1451). oklch(35.3% 0.108 331.9), rgb(90, 33, 84).

Aa

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

About this color

#5A2154 is a dark, moderately saturated purple. In OKLCH its lightness is 35%, its chroma 0.108 and its hue 332°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Grape Purple (#5D1451), ΔE 0.023 away. White text reads best on it, at 11.79:1.

Hue familyPurples
Lightnessdark (35%)
Chromamoderately saturated (0.108)
Temperaturein between
Nearest nameGrape Purple (#5D1451)
Black text1.78:1
White text11.79:1

Values

HEX#5A2154
RGBrgb(90, 33, 84)
HSLhsl(306, 46%, 24%)
OKLCHoklch(35.3% 0.108 331.9)

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 #5A2154 11.79:1 AAA Lc -100.2 Preferred for body text
Black text on #5A2154 1.78:1 Fails Lc 7.4 Not readable
#5A2154 text on white 11.79:1 AAA Lc 96.5 Preferred for body text
#5A2154 text on black 1.78:1 Fails Lc 0.0 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

    #FAF3F9

    oklch(97.1% 0.011 330.1)

  2. Step 100

    100

    #F4E4F1

    oklch(93.5% 0.024 331.9)

  3. Step 200

    200

    #ECCFE7

    oklch(88.6% 0.045 331.7)

  4. Step 300

    300

    #E0AED8

    oklch(80.9% 0.08 331.8)

  5. Step 400

    400

    #CF81C5

    oklch(70.7% 0.13 331.6)

  6. Step 500

    500

    #C15EB6

    oklch(63.1% 0.166 331.7)

  7. Step 600

    600

    #AC41A1

    oklch(55.6% 0.18 332)

  8. Step 700

    700

    #94318A

    oklch(49.1% 0.169 332.1)

  9. Step 800

    800

    #782A70

    oklch(42.7% 0.139 332)

  10. Step 900

    900 (this color)

    #5A2154

    oklch(35.3% 0.108 331.9)

  11. Step 950

    950

    #391835

    oklch(27% 0.068 332)

Export this scale for Tailwind in the Tailwind colors tool

#5A2154 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)#1F32560.111
Deuteranopia (no green cones)#313B520.099
Tritanopia (no blue cones)#5E26370.057
Achromatopsia (no color)#3838380.109

Harmonies

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

Complementary

The opposite hue (180°).

  • #5A2154

    #5A2154

    oklch(35.3% 0.108 331.9)

  • #004821

    #004821

    oklch(35.2% 0.092 152)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5A2154

    #5A2154

    oklch(35.3% 0.108 331.9)

  • #462A69

    #462A69

    oklch(35.3% 0.107 301.7)

  • #661C37

    #661C37

    oklch(35.4% 0.108 2.1)

Open the analogous palette in the generator

Split complementary

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

  • #5A2154

    #5A2154

    oklch(35.3% 0.108 331.9)

  • #344200

    #344200

    oklch(35.4% 0.086 122.2)

  • #00463E

    #00463E

    oklch(35.4% 0.063 182.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5A2154

    #5A2154

    oklch(35.3% 0.108 331.9)

  • #493A00

    #493A00

    oklch(35.4% 0.073 92.5)

  • #00444E

    #00444E

    oklch(35.5% 0.062 211.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5A2154

    #5A2154

    oklch(35.3% 0.108 331.9)

  • #593000

    #593000

    oklch(35.4% 0.081 62.1)

  • #004821

    #004821

    oklch(35.2% 0.092 152)

  • #003F63

    #003F63

    oklch(35.3% 0.084 242.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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