#5B417C

Closest named color: Dark Slate Blue (#483D8B). oklch(43.1% 0.098 302.8), rgb(91, 65, 124).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (43%)
Chromamoderately saturated (0.098)
Temperaturein between
Nearest nameDark Slate Blue (#483D8B)
Black text2.49:1
White text8.42:1

Values

HEX#5B417C
RGBrgb(91, 65, 124)
HSLhsl(266, 31%, 37%)
OKLCHoklch(43.1% 0.098 302.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 #5B417C 8.42:1 AAA Lc -93.5 Preferred for body text
Black text on #5B417C 2.49:1 Fails Lc 15.1 Dividers and decoration only
#5B417C text on white 8.42:1 AAA Lc 88.9 Fine for body text
#5B417C text on black 2.49:1 Fails Lc -13.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 800.

  1. Step 50

    50

    #F6F4FA

    oklch(97% 0.008 301.4)

  2. Step 100

    100

    #ECE7F3

    oklch(93.5% 0.017 304.8)

  3. Step 200

    200

    #DDD4EB

    oklch(88.4% 0.033 303.4)

  4. Step 300

    300

    #C8B8E0

    oklch(80.9% 0.058 303.3)

  5. Step 400

    400

    #AC93D0

    oklch(70.8% 0.091 302.9)

  6. Step 500

    500

    #9877C4

    oklch(63.2% 0.118 302.9)

  7. Step 600

    600

    #835EB0

    oklch(55.6% 0.128 303.3)

  8. Step 700

    700

    #6E4E97

    oklch(49.1% 0.117 302.5)

  9. Step 800

    800 (this color)

    #5B417C

    oklch(43.1% 0.098 302.8)

  10. Step 900

    900

    #4A3763

    oklch(37.8% 0.076 302.8)

  11. Step 950

    950

    #2B203A

    oklch(26.9% 0.049 302.7)

Export this scale for Tailwind in the Tailwind colors tool

#5B417C 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)#314D7E0.068
Deuteranopia (no green cones)#374D7A0.063
Tritanopia (no blue cones)#554B580.075
Achromatopsia (no color)#4D4D4D0.099

Harmonies

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

Complementary

The opposite hue (180°).

  • #5B417C

    #5B417C

    oklch(43.1% 0.098 302.8)

  • #46580D

    #46580D

    oklch(43% 0.098 122.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5B417C

    #5B417C

    oklch(43.1% 0.098 302.8)

  • #3F4B85

    #3F4B85

    oklch(43.2% 0.097 272.9)

  • #6F3967

    #6F3967

    oklch(43% 0.099 332.9)

Open the analogous palette in the generator

Split complementary

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

  • #5B417C

    #5B417C

    oklch(43.1% 0.098 302.8)

  • #614E00

    #614E00

    oklch(43.1% 0.088 92.7)

  • #185F35

    #185F35

    oklch(43.1% 0.098 152.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5B417C

    #5B417C

    oklch(43.1% 0.098 302.8)

  • #754200

    #754200

    oklch(43.2% 0.098 63.2)

  • #005D54

    #005D54

    oklch(43% 0.076 183.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5B417C

    #5B417C

    oklch(43.1% 0.098 302.8)

  • #7D392B

    #7D392B

    oklch(43.2% 0.098 33.1)

  • #46580D

    #46580D

    oklch(43% 0.098 122.9)

  • #005A68

    #005A68

    oklch(42.9% 0.075 212.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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