#5D1982

Closest named color: Indigo (#4B0082). oklch(38.1% 0.166 310), rgb(93, 25, 130).

Aa

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

About this color

#5D1982 is a dark, vivid purple. In OKLCH its lightness is 38%, its chroma 0.166 and its hue 310°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Indigo (#4B0082), ΔE 0.050 away. White text reads best on it, at 10.89:1.

Hue familyPurples
Lightnessdark (38%)
Chromavivid (0.166)
Temperaturein between
Nearest nameIndigo (#4B0082)
Black text1.92:1
White text10.89:1

Values

HEX#5D1982
RGBrgb(93, 25, 130)
HSLhsl(279, 68%, 30%)
OKLCHoklch(38.1% 0.166 310)

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 #5D1982 10.89:1 AAA Lc -98.2 Preferred for body text
Black text on #5D1982 1.92:1 Fails Lc 9.7 Not readable
#5D1982 text on white 10.89:1 AAA Lc 94.2 Preferred for body text
#5D1982 text on black 1.92:1 Fails Lc -8.4 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

    #F9F3FE

    oklch(97.2% 0.016 310.1)

  2. Step 100

    100

    #F1E4FC

    oklch(93.6% 0.035 309.8)

  3. Step 200

    200

    #E7CDFC

    oklch(88.5% 0.069 309.8)

  4. Step 300

    300

    #D9AAFD

    oklch(81% 0.124 309.7)

  5. Step 400

    400

    #C676FB

    oklch(70.6% 0.199 310)

  6. Step 500

    500

    #B847F8

    oklch(63.1% 0.254 310.2)

  7. Step 600

    600

    #A40EE7

    oklch(55.6% 0.276 310.1)

  8. Step 700

    700

    #8B00C6

    oklch(49.1% 0.249 309.9)

  9. Step 800

    800

    #7205A2

    oklch(42.7% 0.212 310.2)

  10. Step 900

    900 (this color)

    #5D1982

    oklch(38.1% 0.166 310)

  11. Step 950

    950

    #36114B

    oklch(27% 0.104 310.4)

Export this scale for Tailwind in the Tailwind colors tool

#5D1982 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)#003A850.135
Deuteranopia (no green cones)#003E800.138
Tritanopia (no blue cones)#58334D0.113
Achromatopsia (no color)#3D3D3D0.167

Harmonies

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

Complementary

The opposite hue (180°).

  • #5D1982

    #5D1982

    oklch(38.1% 0.166 310)

  • #304C00

    #304C00

    oklch(38% 0.102 129.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5D1982

    #5D1982

    oklch(38.1% 0.166 310)

  • #382C96

    #382C96

    oklch(38% 0.165 280.2)

  • #75005D

    #75005D

    oklch(38% 0.165 339.9)

Open the analogous palette in the generator

Split complementary

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

  • #5D1982

    #5D1982

    oklch(38.1% 0.166 310)

  • #4D4300

    #4D4300

    oklch(38.1% 0.079 99.6)

  • #005032

    #005032

    oklch(38.1% 0.086 159.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5D1982

    #5D1982

    oklch(38.1% 0.166 310)

  • #5E3900

    #5E3900

    oklch(38% 0.083 69.6)

  • #004D4A

    #004D4A

    oklch(37.9% 0.065 190.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5D1982

    #5D1982

    oklch(38.1% 0.166 310)

  • #742400

    #742400

    oklch(38.1% 0.12 39.9)

  • #304C00

    #304C00

    oklch(38% 0.102 129.6)

  • #004B5C

    #004B5C

    oklch(38.2% 0.069 219.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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