#5B45A5

Closest named color: Blueberry (#464196). oklch(46.5% 0.148 290), rgb(91, 69, 165).

Aa

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

About this color

#5B45A5 is a medium-dark, vivid purple. In OKLCH its lightness is 47%, its chroma 0.148 and its hue 290°. Its hue sits on the cool side of the wheel. The nearest named color is Blueberry (#464196), ΔE 0.044 away. White text reads best on it, at 7.39:1.

Hue familyPurples
Lightnessmedium-dark (47%)
Chromavivid (0.148)
Temperaturecool
Nearest nameBlueberry (#464196)
Black text2.83:1
White text7.39:1

Values

HEX#5B45A5
RGBrgb(91, 69, 165)
HSLhsl(254, 41%, 46%)
OKLCHoklch(46.5% 0.148 290)

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 #5B45A5 7.39:1 AAA Lc -90.2 Preferred for body text
Black text on #5B45A5 2.83:1 Fails Lc 18.6 Dividers and decoration only
#5B45A5 text on white 7.39:1 AAA Lc 85.4 Fine for body text
#5B45A5 text on black 2.83:1 Fails Lc -16.6 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

    #F5F4FC

    oklch(97% 0.011 292)

  2. Step 100

    100

    #E9E8F7

    oklch(93.6% 0.02 289.1)

  3. Step 200

    200

    #D8D5F2

    oklch(88.4% 0.04 290.3)

  4. Step 300

    300

    #BFB9EC

    oklch(80.8% 0.072 290.1)

  5. Step 400

    400

    #A094E3

    oklch(70.8% 0.114 290.1)

  6. Step 500

    500

    #8977DB

    oklch(63% 0.147 289.8)

  7. Step 600

    600

    #745EC9

    oklch(55.6% 0.16 289.6)

  8. Step 700

    700 (this color)

    #5B45A5

    oklch(46.5% 0.148 290)

  9. Step 800

    800

    #503F8C

    oklch(42.6% 0.123 290.4)

  10. Step 900

    900

    #423770

    oklch(37.8% 0.095 290)

  11. Step 950

    950

    #262042

    oklch(26.9% 0.062 289.7)

Export this scale for Tailwind in the Tailwind colors tool

#5B45A5 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)#0557A80.090
Deuteranopia (no green cones)#0D53A30.087
Tritanopia (no blue cones)#455A6E0.121
Achromatopsia (no color)#5656560.149

Harmonies

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

Complementary

The opposite hue (180°).

  • #5B45A5

    #5B45A5

    oklch(46.5% 0.148 290)

  • #5D5E00

    #5D5E00

    oklch(46.6% 0.102 110.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5B45A5

    #5B45A5

    oklch(46.5% 0.148 290)

  • #2155AB

    #2155AB

    oklch(46.5% 0.149 260)

  • #7C378C

    #7C378C

    oklch(46.5% 0.148 319.7)

Open the analogous palette in the generator

Split complementary

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

  • #5B45A5

    #5B45A5

    oklch(46.5% 0.148 290)

  • #755200

    #755200

    oklch(46.4% 0.096 80.1)

  • #1F6C02

    #1F6C02

    oklch(46.6% 0.148 139.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5B45A5

    #5B45A5

    oklch(46.5% 0.148 290)

  • #8E4000

    #8E4000

    oklch(46.6% 0.123 50)

  • #006A51

    #006A51

    oklch(46.6% 0.093 169.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5B45A5

    #5B45A5

    oklch(46.5% 0.148 290)

  • #9B2A35

    #9B2A35

    oklch(46.4% 0.148 19.9)

  • #5D5E00

    #5D5E00

    oklch(46.6% 0.102 110.5)

  • #00666B

    #00666B

    oklch(46.4% 0.079 200.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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