#5B288A

Closest named color: Rebecca Purple (#663399). oklch(40.1% 0.156 303.9), rgb(91, 40, 138).

Aa

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

About this color

#5B288A is a dark, vivid purple. In OKLCH its lightness is 40%, its chroma 0.156 and its hue 304°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Rebecca Purple (#663399), ΔE 0.040 away. White text reads best on it, at 9.92:1.

Hue familyPurples
Lightnessdark (40%)
Chromavivid (0.156)
Temperaturein between
Nearest nameRebecca Purple (#663399)
Black text2.11:1
White text9.92:1

Values

HEX#5B288A
RGBrgb(91, 40, 138)
HSLhsl(271, 55%, 35%)
OKLCHoklch(40.1% 0.156 303.9)

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 #5B288A 9.92:1 AAA Lc -96.6 Preferred for body text
Black text on #5B288A 2.11:1 Fails Lc 11.6 Not readable
#5B288A text on white 9.92:1 AAA Lc 92.4 Preferred for body text
#5B288A text on black 2.11:1 Fails Lc -10.1 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 900.

  1. Step 50

    50

    #F8F3FE

    oklch(97.1% 0.015 306.4)

  2. Step 100

    100

    #EEE5FD

    oklch(93.6% 0.033 302.7)

  3. Step 200

    200

    #E2CFFD

    oklch(88.5% 0.066 303.9)

  4. Step 300

    300

    #D1AEFE

    oklch(81% 0.116 304)

  5. Step 400

    400

    #BA7EFD

    oklch(70.7% 0.186 303.8)

  6. Step 500

    500

    #AA54FB

    oklch(63.1% 0.238 303.9)

  7. Step 600

    600

    #962CEA

    oklch(55.6% 0.259 303.8)

  8. Step 700

    700

    #8119CC

    oklch(49.2% 0.242 304)

  9. Step 800

    800

    #681BA5

    oklch(42.7% 0.2 303.7)

  10. Step 900

    900 (this color)

    #5B288A

    oklch(40.1% 0.156 303.9)

  11. Step 950

    950

    #31154C

    oklch(26.9% 0.098 303.9)

Export this scale for Tailwind in the Tailwind colors tool

#5B288A 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)#00428D0.119
Deuteranopia (no green cones)#0043880.120
Tritanopia (no blue cones)#523F560.113
Achromatopsia (no color)#4343430.157

Harmonies

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

Complementary

The opposite hue (180°).

  • #5B288A

    #5B288A

    oklch(40.1% 0.156 303.9)

  • #3D5000

    #3D5000

    oklch(40% 0.099 123.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5B288A

    #5B288A

    oklch(40.1% 0.156 303.9)

  • #32399A

    #32399A

    oklch(40.2% 0.156 273.9)

  • #751869

    #751869

    oklch(40% 0.155 334)

Open the analogous palette in the generator

Split complementary

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

  • #5B288A

    #5B288A

    oklch(40.1% 0.156 303.9)

  • #574600

    #574600

    oklch(40% 0.082 93)

  • #00572D

    #00572D

    oklch(40.1% 0.101 153.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5B288A

    #5B288A

    oklch(40.1% 0.156 303.9)

  • #693B00

    #693B00

    oklch(40% 0.091 63.6)

  • #00544C

    #00544C

    oklch(40.1% 0.071 183.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5B288A

    #5B288A

    oklch(40.1% 0.156 303.9)

  • #841A00

    #841A00

    oklch(40% 0.145 33.8)

  • #3D5000

    #3D5000

    oklch(40% 0.099 123.8)

  • #00515F

    #00515F

    oklch(40% 0.07 214.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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