#5B4E9D

Closest named color: Twilight (#4E518B). oklch(47.6% 0.124 288.3), rgb(91, 78, 157).

Aa

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

About this color

#5B4E9D is a medium-dark, moderately saturated purple. In OKLCH its lightness is 48%, its chroma 0.124 and its hue 288°. Its hue sits on the cool side of the wheel. The nearest named color is Twilight (#4E518B), ΔE 0.038 away. White text reads best on it, at 6.95:1.

Hue familyPurples
Lightnessmedium-dark (48%)
Chromamoderately saturated (0.124)
Temperaturecool
Nearest nameTwilight (#4E518B)
Black text3.02:1
White text6.95:1

Values

HEX#5B4E9D
RGBrgb(91, 78, 157)
HSLhsl(250, 34%, 46%)
OKLCHoklch(47.6% 0.124 288.3)

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 #5B4E9D 6.95:1 AA Lc -88.8 Fine for body text
Black text on #5B4E9D 3.02:1 AA large text Lc 20.2 Dividers and decoration only
#5B4E9D text on white 6.95:1 AA Lc 83.9 Fine for body text
#5B4E9D text on black 3.02:1 AA large text Lc -18.1 Dividers and decoration only

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 700.

  1. Step 50

    50

    #F5F5FB

    oklch(97.2% 0.008 286.3)

  2. Step 100

    100

    #E9E8F5

    oklch(93.6% 0.017 289.6)

  3. Step 200

    200

    #D8D6EE

    oklch(88.5% 0.033 289.5)

  4. Step 300

    300

    #BEBBE6

    oklch(80.9% 0.06 288.2)

  5. Step 400

    400

    #9E97D9

    oklch(70.7% 0.096 288.6)

  6. Step 500

    500

    #877CCF

    oklch(63.1% 0.123 288.4)

  7. Step 600

    600

    #7164BC

    oklch(55.6% 0.133 288.1)

  8. Step 700

    700 (this color)

    #5B4E9D

    oklch(47.6% 0.124 288.3)

  9. Step 800

    800

    #4D4483

    oklch(42.7% 0.102 287.8)

  10. Step 900

    900

    #403A69

    oklch(37.8% 0.079 287.9)

  11. Step 950

    950

    #25223E

    oklch(27% 0.051 287.4)

Export this scale for Tailwind in the Tailwind colors tool

#5B4E9D 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)#2E5BA00.063
Deuteranopia (no green cones)#2E589B0.062
Tritanopia (no blue cones)#485E6E0.103
Achromatopsia (no color)#5A5A5A0.124

Harmonies

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

Complementary

The opposite hue (180°).

  • #5B4E9D

    #5B4E9D

    oklch(47.6% 0.124 288.3)

  • #626000

    #626000

    oklch(47.5% 0.103 108.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5B4E9D

    #5B4E9D

    oklch(47.6% 0.124 288.3)

  • #2D5BA1

    #2D5BA1

    oklch(47.6% 0.124 258.7)

  • #794389

    #794389

    oklch(47.7% 0.123 318.1)

Open the analogous palette in the generator

Split complementary

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

  • #5B4E9D

    #5B4E9D

    oklch(47.6% 0.124 288.3)

  • #7A5400

    #7A5400

    oklch(47.5% 0.099 78.4)

  • #356C1F

    #356C1F

    oklch(47.6% 0.124 138.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5B4E9D

    #5B4E9D

    oklch(47.6% 0.124 288.3)

  • #92420A

    #92420A

    oklch(47.6% 0.124 48.3)

  • #006D52

    #006D52

    oklch(47.5% 0.096 168.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5B4E9D

    #5B4E9D

    oklch(47.6% 0.124 288.3)

  • #953A41

    #953A41

    oklch(47.6% 0.123 18.4)

  • #626000

    #626000

    oklch(47.5% 0.103 108.3)

  • #006A6D

    #006A6D

    oklch(47.6% 0.081 198.2)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #5B4E9D.

Similar named colors

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

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