#5A278E

Closest named color: Rebecca Purple (#663399). oklch(40.1% 0.161 302.2), rgb(90, 39, 142).

Aa

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

About this color

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

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

Values

HEX#5A278E
RGBrgb(90, 39, 142)
HSLhsl(270, 57%, 35%)
OKLCHoklch(40.1% 0.161 302.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 #5A278E 9.92:1 AAA Lc -96.5 Preferred for body text
Black text on #5A278E 2.11:1 Fails Lc 11.6 Not readable
#5A278E text on white 9.92:1 AAA Lc 92.3 Preferred for body text
#5A278E 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

    #F7F3FF

    oklch(97.1% 0.016 301.2)

  2. Step 100

    100

    #EEE5FE

    oklch(93.6% 0.035 302.1)

  3. Step 200

    200

    #E1CFFF

    oklch(88.5% 0.068 302.1)

  4. Step 300

    300

    #CFAEFF

    oklch(80.8% 0.117 302.6)

  5. Step 400

    400

    #B77FFF

    oklch(70.7% 0.186 302.1)

  6. Step 500

    500

    #A754FF

    oklch(63% 0.242 302.1)

  7. Step 600

    600

    #9527F1

    oklch(55.7% 0.269 302.3)

  8. Step 700

    700

    #7F12D2

    oklch(49.1% 0.25 302.2)

  9. Step 800

    800

    #6717AA

    oklch(42.7% 0.208 302.1)

  10. Step 900

    900 (this color)

    #5A278E

    oklch(40.1% 0.161 302.2)

  11. Step 950

    950

    #31144F

    oklch(27% 0.103 302.5)

Export this scale for Tailwind in the Tailwind colors tool

#5A278E 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)#0042910.117
Deuteranopia (no green cones)#00428C0.118
Tritanopia (no blue cones)#4F40580.118
Achromatopsia (no color)#4343430.162

Harmonies

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

Complementary

The opposite hue (180°).

  • #5A278E

    #5A278E

    oklch(40.1% 0.161 302.2)

  • #3F5000

    #3F5000

    oklch(40.2% 0.098 122.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5A278E

    #5A278E

    oklch(40.1% 0.161 302.2)

  • #2E399D

    #2E399D

    oklch(40.2% 0.161 272.1)

  • #76166D

    #76166D

    oklch(40.2% 0.161 332.4)

Open the analogous palette in the generator

Split complementary

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

  • #5A278E

    #5A278E

    oklch(40.1% 0.161 302.2)

  • #584600

    #584600

    oklch(40.2% 0.082 92)

  • #00572A

    #00572A

    oklch(40% 0.104 152.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5A278E

    #5A278E

    oklch(40.1% 0.161 302.2)

  • #6A3B00

    #6A3B00

    oklch(40.2% 0.092 62.9)

  • #00544B

    #00544B

    oklch(40% 0.071 182.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5A278E

    #5A278E

    oklch(40.1% 0.161 302.2)

  • #871400

    #871400

    oklch(40.1% 0.151 32.2)

  • #3F5000

    #3F5000

    oklch(40.2% 0.098 122.6)

  • #00525E

    #00525E

    oklch(40.2% 0.07 211.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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