#5C3871

Closest named color: Dark Slate Blue (#483D8B). oklch(40.9% 0.1 311.8), rgb(92, 56, 113).

Aa

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

About this color

#5C3871 is a dark, moderately saturated purple. In OKLCH its lightness is 41%, its chroma 0.100 and its hue 312°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.056 away. White text reads best on it, at 9.29:1.

Hue familyPurples
Lightnessdark (41%)
Chromamoderately saturated (0.100)
Temperaturein between
Nearest nameDark Slate Blue (#483D8B)
Black text2.25:1
White text9.29:1

Values

HEX#5C3871
RGBrgb(92, 56, 113)
HSLhsl(278, 34%, 33%)
OKLCHoklch(40.9% 0.1 311.8)

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 #5C3871 9.29:1 AAA Lc -95.6 Preferred for body text
Black text on #5C3871 2.25:1 Fails Lc 12.7 Not readable
#5C3871 text on white 9.29:1 AAA Lc 91.2 Preferred for body text
#5C3871 text on black 2.25:1 Fails Lc -11.1 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 800.

  1. Step 50

    50

    #F7F4F9

    oklch(97.1% 0.007 312.3)

  2. Step 100

    100

    #EEE7F2

    oklch(93.7% 0.016 313.6)

  3. Step 200

    200

    #E0D3E9

    oklch(88.4% 0.033 311.7)

  4. Step 300

    300

    #CDB6DD

    oklch(80.8% 0.059 311.4)

  5. Step 400

    400

    #B490CB

    oklch(70.7% 0.093 311.8)

  6. Step 500

    500

    #A173BE

    oklch(63.1% 0.12 311.5)

  7. Step 600

    600

    #8C5AAA

    oklch(55.5% 0.13 311.6)

  8. Step 700

    700

    #774A92

    oklch(49.1% 0.121 311.5)

  9. Step 800

    800 (this color)

    #5C3871

    oklch(40.9% 0.1 311.8)

  10. Step 900

    900

    #4F345F

    oklch(37.6% 0.078 312)

  11. Step 950

    950

    #2E1F38

    oklch(27% 0.049 310.9)

Export this scale for Tailwind in the Tailwind colors tool

#5C3871 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)#2B45730.082
Deuteranopia (no green cones)#35486F0.075
Tritanopia (no blue cones)#5A414F0.069
Achromatopsia (no color)#4747470.101

Harmonies

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

Complementary

The opposite hue (180°).

  • #5C3871

    #5C3871

    oklch(40.9% 0.1 311.8)

  • #355512

    #355512

    oklch(41% 0.101 131.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5C3871

    #5C3871

    oklch(40.9% 0.1 311.8)

  • #42417E

    #42417E

    oklch(40.8% 0.1 281.7)

  • #6D3159

    #6D3159

    oklch(40.8% 0.1 341.9)

Open the analogous palette in the generator

Split complementary

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

  • #5C3871

    #5C3871

    oklch(40.9% 0.1 311.8)

  • #544B00

    #544B00

    oklch(40.9% 0.085 101.5)

  • #00593B

    #00593B

    oklch(41% 0.09 162)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5C3871

    #5C3871

    oklch(40.9% 0.1 311.8)

  • #674100

    #674100

    oklch(41% 0.088 72)

  • #005654

    #005654

    oklch(40.9% 0.07 192)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5C3871

    #5C3871

    oklch(40.9% 0.1 311.8)

  • #763419

    #763419

    oklch(41% 0.101 41.5)

  • #355512

    #355512

    oklch(41% 0.101 131.9)

  • #005367

    #005367

    oklch(41% 0.075 221.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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