#5B1B71

Closest named color: Royal Purple (#4B006E). oklch(36.6% 0.146 315.9), rgb(91, 27, 113).

Aa

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

About this color

#5B1B71 is a dark, vivid purple. In OKLCH its lightness is 37%, its chroma 0.146 and its hue 316°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Royal Purple (#4B006E), ΔE 0.052 away. White text reads best on it, at 11.41:1.

Hue familyPurples
Lightnessdark (37%)
Chromavivid (0.146)
Temperaturein between
Nearest nameRoyal Purple (#4B006E)
Black text1.84:1
White text11.41:1

Values

HEX#5B1B71
RGBrgb(91, 27, 113)
HSLhsl(285, 61%, 27%)
OKLCHoklch(36.6% 0.146 315.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 #5B1B71 11.41:1 AAA Lc -99.3 Preferred for body text
Black text on #5B1B71 1.84:1 Fails Lc 8.5 Not readable
#5B1B71 text on white 11.41:1 AAA Lc 95.4 Preferred for body text
#5B1B71 text on black 1.84: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

    #F9F3FC

    oklch(97.1% 0.013 314.8)

  2. Step 100

    100

    #F2E4F9

    oklch(93.6% 0.032 314.7)

  3. Step 200

    200

    #E9CEF5

    oklch(88.6% 0.06 315.5)

  4. Step 300

    300

    #DCABF1

    oklch(80.9% 0.109 315.5)

  5. Step 400

    400

    #CA7AE9

    oklch(70.7% 0.175 315.9)

  6. Step 500

    500

    #BC50E2

    oklch(63.1% 0.224 316.1)

  7. Step 600

    600

    #A729D0

    oklch(55.6% 0.243 315.8)

  8. Step 700

    700

    #8F17B4

    oklch(49.1% 0.226 315.8)

  9. Step 800

    800

    #741992

    oklch(42.7% 0.188 315.6)

  10. Step 900

    900 (this color)

    #5B1B71

    oklch(36.6% 0.146 315.9)

  11. Step 950

    950

    #371444

    oklch(27% 0.092 315.7)

Export this scale for Tailwind in the Tailwind colors tool

#5B1B71 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)#0036730.136
Deuteranopia (no green cones)#1A3C6F0.124
Tritanopia (no blue cones)#592D440.094
Achromatopsia (no color)#3A3A3A0.147

Harmonies

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

Complementary

The opposite hue (180°).

  • #5B1B71

    #5B1B71

    oklch(36.6% 0.146 315.9)

  • #214B00

    #214B00

    oklch(36.8% 0.109 135.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5B1B71

    #5B1B71

    oklch(36.6% 0.146 315.9)

  • #3C2A86

    #3C2A86

    oklch(36.6% 0.146 285.7)

  • #6F0B4F

    #6F0B4F

    oklch(36.7% 0.146 345.7)

Open the analogous palette in the generator

Split complementary

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

  • #5B1B71

    #5B1B71

    oklch(36.6% 0.146 315.9)

  • #454100

    #454100

    oklch(36.7% 0.078 105.7)

  • #004B35

    #004B35

    oklch(36.6% 0.076 165.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5B1B71

    #5B1B71

    oklch(36.6% 0.146 315.9)

  • #563800

    #563800

    oklch(36.7% 0.077 75.5)

  • #004949

    #004949

    oklch(36.7% 0.063 194.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5B1B71

    #5B1B71

    oklch(36.6% 0.146 315.9)

  • #692800

    #692800

    oklch(36.6% 0.104 45.5)

  • #214B00

    #214B00

    oklch(36.8% 0.109 135.9)

  • #00465B

    #00465B

    oklch(36.7% 0.07 225.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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