#5B4B98

Closest named color: Twilight (#4E518B). oklch(46.7% 0.121 290.5), rgb(91, 75, 152).

Aa

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

About this color

#5B4B98 is a medium-dark, moderately saturated purple. In OKLCH its lightness is 47%, its chroma 0.121 and its hue 290°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Twilight (#4E518B), ΔE 0.035 away. White text reads best on it, at 7.22:1.

Hue familyPurples
Lightnessmedium-dark (47%)
Chromamoderately saturated (0.121)
Temperaturein between
Nearest nameTwilight (#4E518B)
Black text2.90:1
White text7.22:1

Values

HEX#5B4B98
RGBrgb(91, 75, 152)
HSLhsl(252, 34%, 45%)
OKLCHoklch(46.7% 0.121 290.5)

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 #5B4B98 7.22:1 AAA Lc -89.8 Fine for body text
Black text on #5B4B98 2.90:1 Fails Lc 19.1 Dividers and decoration only
#5B4B98 text on white 7.22:1 AAA Lc 84.9 Fine for body text
#5B4B98 text on black 2.90:1 Fails Lc -17.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

    #F5F5FA

    oklch(97.2% 0.007 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

    #C0BBE4

    oklch(81% 0.058 290.6)

  5. Step 400

    400

    #A096D7

    oklch(70.6% 0.094 290.8)

  6. Step 500

    500

    #897BCC

    oklch(62.9% 0.12 290.5)

  7. Step 600

    600

    #7463B9

    oklch(55.5% 0.13 290.6)

  8. Step 700

    700 (this color)

    #5B4B98

    oklch(46.7% 0.121 290.5)

  9. Step 800

    800

    #4F4381

    oklch(42.6% 0.1 290.4)

  10. Step 900

    900

    #423968

    oklch(37.7% 0.079 290.9)

  11. Step 950

    950

    #26223D

    oklch(27% 0.049 289.5)

Export this scale for Tailwind in the Tailwind colors tool

#5B4B98 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)#2C589B0.066
Deuteranopia (no green cones)#2E55960.063
Tritanopia (no blue cones)#4B5B6A0.101
Achromatopsia (no color)#5757570.122

Harmonies

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

Complementary

The opposite hue (180°).

  • #5B4B98

    #5B4B98

    oklch(46.7% 0.121 290.5)

  • #5D5E00

    #5D5E00

    oklch(46.6% 0.102 110.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5B4B98

    #5B4B98

    oklch(46.7% 0.121 290.5)

  • #30589D

    #30589D

    oklch(46.8% 0.121 260.5)

  • #774083

    #774083

    oklch(46.6% 0.121 320.2)

Open the analogous palette in the generator

Split complementary

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

  • #5B4B98

    #5B4B98

    oklch(46.7% 0.121 290.5)

  • #765300

    #765300

    oklch(46.8% 0.097 80.4)

  • #2E6A22

    #2E6A22

    oklch(46.8% 0.122 140.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5B4B98

    #5B4B98

    oklch(46.7% 0.121 290.5)

  • #8D4103

    #8D4103

    oklch(46.6% 0.121 50.4)

  • #006A53

    #006A53

    oklch(46.7% 0.091 171.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5B4B98

    #5B4B98

    oklch(46.7% 0.121 290.5)

  • #92383C

    #92383C

    oklch(46.7% 0.122 20.5)

  • #5D5E00

    #5D5E00

    oklch(46.6% 0.102 110.5)

  • #00676C

    #00676C

    oklch(46.7% 0.079 200.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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