#5A3151

Closest named color: Purple Brown (#673A3F). oklch(37.7% 0.075 335.6), rgb(90, 49, 81).

Aa

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

About this color

#5A3151 is a dark, moderately saturated purple. In OKLCH its lightness is 38%, its chroma 0.075 and its hue 336°. Its hue sits on the warm side of the wheel. The nearest named color is Purple Brown (#673A3F), ΔE 0.054 away. White text reads best on it, at 10.53:1.

Hue familyPurples
Lightnessdark (38%)
Chromamoderately saturated (0.075)
Temperaturewarm
Nearest namePurple Brown (#673A3F)
Black text1.99:1
White text10.53:1

Values

HEX#5A3151
RGBrgb(90, 49, 81)
HSLhsl(313, 29%, 27%)
OKLCHoklch(37.7% 0.075 335.6)

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 #5A3151 10.53:1 AAA Lc -98.2 Preferred for body text
Black text on #5A3151 1.99:1 Fails Lc 9.7 Not readable
#5A3151 text on white 10.53:1 AAA Lc 94.2 Preferred for body text
#5A3151 text on black 1.99:1 Fails Lc -8.3 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

    #F9F4F7

    oklch(97.2% 0.007 340.4)

  2. Step 100

    100

    #F1E6EE

    oklch(93.6% 0.016 335.1)

  3. Step 200

    200

    #E7D2E1

    oklch(88.5% 0.031 335.9)

  4. Step 300

    300

    #D9B3CF

    oklch(80.9% 0.057 335.6)

  5. Step 400

    400

    #C48BB7

    oklch(70.7% 0.091 335)

  6. Step 500

    500

    #B46DA4

    oklch(63% 0.115 335.6)

  7. Step 600

    600

    #9F5490

    oklch(55.6% 0.126 335.1)

  8. Step 700

    700

    #88447A

    oklch(49.1% 0.116 335.5)

  9. Step 800

    800

    #6F3863

    oklch(42.7% 0.097 335.9)

  10. Step 900

    900 (this color)

    #5A3151

    oklch(37.7% 0.075 335.6)

  11. Step 950

    950

    #351D2F

    oklch(27% 0.047 336.6)

Export this scale for Tailwind in the Tailwind colors tool

#5A3151 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)#313B520.076
Deuteranopia (no green cones)#3C41500.069
Tritanopia (no blue cones)#5E333D0.038
Achromatopsia (no color)#3F3F3F0.076

Harmonies

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

Complementary

The opposite hue (180°).

  • #5A3151

    #5A3151

    oklch(37.7% 0.075 335.6)

  • #184D30

    #184D30

    oklch(37.6% 0.075 155.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5A3151

    #5A3151

    oklch(37.7% 0.075 335.6)

  • #4B3661

    #4B3661

    oklch(37.6% 0.075 305.6)

  • #622F3C

    #622F3C

    oklch(37.7% 0.075 5.1)

Open the analogous palette in the generator

Split complementary

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

  • #5A3151

    #5A3151

    oklch(37.7% 0.075 335.6)

  • #384817

    #384817

    oklch(37.6% 0.075 125.2)

  • #004D47

    #004D47

    oklch(37.8% 0.066 185.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5A3151

    #5A3151

    oklch(37.7% 0.075 335.6)

  • #4E4103

    #4E4103

    oklch(37.8% 0.076 95.8)

  • #004A58

    #004A58

    oklch(37.7% 0.067 215.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5A3151

    #5A3151

    oklch(37.7% 0.075 335.6)

  • #5C380D

    #5C380D

    oklch(37.6% 0.075 65.7)

  • #184D30

    #184D30

    oklch(37.6% 0.075 155.9)

  • #194567

    #194567

    oklch(37.7% 0.076 245.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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