#5A42A5

Closest named color: Rebecca Purple (#663399). oklch(45.9% 0.153 290.3), rgb(90, 66, 165).

Aa

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

About this color

#5A42A5 is a medium-dark, vivid purple. In OKLCH its lightness is 46%, its chroma 0.153 and its hue 290°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Rebecca Purple (#663399), ΔE 0.041 away. White text reads best on it, at 7.61:1.

Hue familyPurples
Lightnessmedium-dark (46%)
Chromavivid (0.153)
Temperaturein between
Nearest nameRebecca Purple (#663399)
Black text2.75:1
White text7.61:1

Values

HEX#5A42A5
RGBrgb(90, 66, 165)
HSLhsl(255, 43%, 45%)
OKLCHoklch(45.9% 0.153 290.3)

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 #5A42A5 7.61:1 AAA Lc -90.9 Preferred for body text
Black text on #5A42A5 2.75:1 Fails Lc 17.9 Dividers and decoration only
#5A42A5 text on white 7.61:1 AAA Lc 86.1 Fine for body text
#5A42A5 text on black 2.75:1 Fails Lc -16.0 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

    #E9E8F8

    oklch(93.6% 0.021 288.9)

  3. Step 200

    200

    #D8D5F3

    oklch(88.5% 0.041 290.1)

  4. Step 300

    300

    #BFB9EE

    oklch(80.9% 0.074 289.8)

  5. Step 400

    400

    #A093E5

    oklch(70.7% 0.118 290.3)

  6. Step 500

    500

    #8A76DD

    oklch(63% 0.151 290.3)

  7. Step 600

    600

    #755DCB

    oklch(55.7% 0.164 290.1)

  8. Step 700

    700 (this color)

    #5A42A5

    oklch(45.9% 0.153 290.3)

  9. Step 800

    800

    #503F8E

    oklch(42.8% 0.126 289.9)

  10. Step 900

    900

    #423671

    oklch(37.7% 0.098 290.3)

  11. Step 950

    950

    #272042

    oklch(27% 0.062 291.2)

Export this scale for Tailwind in the Tailwind colors tool

#5A42A5 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)#0055A80.092
Deuteranopia (no green cones)#0051A30.091
Tritanopia (no blue cones)#43586D0.124
Achromatopsia (no color)#5454540.153

Harmonies

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

Complementary

The opposite hue (180°).

  • #5A42A5

    #5A42A5

    oklch(45.9% 0.153 290.3)

  • #5B5C00

    #5B5C00

    oklch(45.9% 0.1 110.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5A42A5

    #5A42A5

    oklch(45.9% 0.153 290.3)

  • #1E53AB

    #1E53AB

    oklch(46% 0.152 260.1)

  • #7C338B

    #7C338B

    oklch(45.9% 0.153 320.5)

Open the analogous palette in the generator

Split complementary

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

  • #5A42A5

    #5A42A5

    oklch(45.9% 0.153 290.3)

  • #735100

    #735100

    oklch(46% 0.095 80.6)

  • #1B6A00

    #1B6A00

    oklch(45.9% 0.148 140.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5A42A5

    #5A42A5

    oklch(45.9% 0.153 290.3)

  • #8B3F00

    #8B3F00

    oklch(46% 0.121 50.3)

  • #006850

    #006850

    oklch(46% 0.091 169.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5A42A5

    #5A42A5

    oklch(45.9% 0.153 290.3)

  • #9B2632

    #9B2632

    oklch(46% 0.152 20.3)

  • #5B5C00

    #5B5C00

    oklch(45.9% 0.1 110.5)

  • #006569

    #006569

    oklch(46% 0.078 199.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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