#5B5099

Closest named color: Twilight (#4E518B). oklch(47.7% 0.115 288.2), rgb(91, 80, 153).

Aa

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

About this color

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

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

Values

HEX#5B5099
RGBrgb(91, 80, 153)
HSLhsl(249, 31%, 46%)
OKLCHoklch(47.7% 0.115 288.2)

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 #5B5099 6.88:1 AA Lc -88.6 Fine for body text
Black text on #5B5099 3.05:1 AA large text Lc 20.4 Dividers and decoration only
#5B5099 text on white 6.88:1 AA Lc 83.6 Fine for body text
#5B5099 text on black 3.05:1 AA large text Lc -18.3 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

    #E9E8F4

    oklch(93.5% 0.016 289.9)

  3. Step 200

    200

    #D8D6ED

    oklch(88.5% 0.031 289.7)

  4. Step 300

    300

    #BEBCE3

    oklch(81% 0.055 287.5)

  5. Step 400

    400

    #9E98D5

    oklch(70.7% 0.088 288.4)

  6. Step 500

    500

    #877DCA

    oklch(63.1% 0.114 288.6)

  7. Step 600

    600

    #7165B7

    oklch(55.5% 0.125 288.4)

  8. Step 700

    700 (this color)

    #5B5099

    oklch(47.7% 0.115 288.2)

  9. Step 800

    800

    #4D4580

    oklch(42.7% 0.096 287.9)

  10. Step 900

    900

    #403A66

    oklch(37.6% 0.074 288.6)

  11. Step 950

    950

    #25223C

    oklch(26.9% 0.048 288)

Export this scale for Tailwind in the Tailwind colors tool

#5B5099 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)#355C9C0.056
Deuteranopia (no green cones)#3458970.055
Tritanopia (no blue cones)#4A5F6D0.097
Achromatopsia (no color)#5A5A5A0.115

Harmonies

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

Complementary

The opposite hue (180°).

  • #5B5099

    #5B5099

    oklch(47.7% 0.115 288.2)

  • #636100

    #636100

    oklch(47.9% 0.103 108.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5B5099

    #5B5099

    oklch(47.7% 0.115 288.2)

  • #315C9C

    #315C9C

    oklch(47.7% 0.114 258.2)

  • #774586

    #774586

    oklch(47.6% 0.115 318.1)

Open the analogous palette in the generator

Split complementary

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

  • #5B5099

    #5B5099

    oklch(47.7% 0.115 288.2)

  • #7B5500

    #7B5500

    oklch(47.8% 0.099 78.7)

  • #396B26

    #396B26

    oklch(47.6% 0.114 138.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5B5099

    #5B5099

    oklch(47.7% 0.115 288.2)

  • #8F4518

    #8F4518

    oklch(47.7% 0.115 47.9)

  • #006E52

    #006E52

    oklch(47.8% 0.097 167.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5B5099

    #5B5099

    oklch(47.7% 0.115 288.2)

  • #923E44

    #923E44

    oklch(47.8% 0.114 18.1)

  • #636100

    #636100

    oklch(47.9% 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 #5B5099, closest first.

Similar named colors

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

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