#5A336B

Closest named color: Dark Slate Blue (#483D8B). oklch(39.4% 0.101 314.8), rgb(90, 51, 107).

Aa

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

About this color

#5A336B is a dark, moderately saturated purple. In OKLCH its lightness is 39%, its chroma 0.101 and its hue 315°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.064 away. White text reads best on it, at 9.90:1.

Hue familyPurples
Lightnessdark (39%)
Chromamoderately saturated (0.101)
Temperaturein between
Nearest nameDark Slate Blue (#483D8B)
Black text2.12:1
White text9.90:1

Values

HEX#5A336B
RGBrgb(90, 51, 107)
HSLhsl(282, 35%, 31%)
OKLCHoklch(39.4% 0.101 314.8)

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 #5A336B 9.90:1 AAA Lc -96.9 Preferred for body text
Black text on #5A336B 2.12:1 Fails Lc 11.2 Not readable
#5A336B text on white 9.90:1 AAA Lc 92.7 Preferred for body text
#5A336B text on black 2.12:1 Fails Lc -9.7 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

    #F8F3FA

    oklch(97% 0.011 316.5)

  2. Step 100

    100

    #EFE6F4

    oklch(93.6% 0.021 313.8)

  3. Step 200

    200

    #E4D1ED

    oklch(88.5% 0.043 315)

  4. Step 300

    300

    #D3B2E3

    oklch(80.8% 0.076 314.6)

  5. Step 400

    400

    #BD89D5

    oklch(70.8% 0.121 314.7)

  6. Step 500

    500

    #AC69C9

    oklch(63.1% 0.155 314.9)

  7. Step 600

    600

    #974EB6

    oklch(55.6% 0.168 314.7)

  8. Step 700

    700

    #813E9C

    oklch(49.1% 0.156 315.1)

  9. Step 800

    800

    #69347F

    oklch(42.8% 0.13 314.9)

  10. Step 900

    900 (this color)

    #5A336B

    oklch(39.4% 0.101 314.8)

  11. Step 950

    950

    #321C3C

    oklch(27.1% 0.064 314.5)

Export this scale for Tailwind in the Tailwind colors tool

#5A336B 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)#27416D0.087
Deuteranopia (no green cones)#3344690.078
Tritanopia (no blue cones)#593C4A0.068
Achromatopsia (no color)#4343430.102

Harmonies

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

Complementary

The opposite hue (180°).

  • #5A336B

    #5A336B

    oklch(39.4% 0.101 314.8)

  • #2D5111

    #2D5111

    oklch(39.3% 0.1 134.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5A336B

    #5A336B

    oklch(39.4% 0.101 314.8)

  • #423C7A

    #423C7A

    oklch(39.5% 0.102 285.1)

  • #6A2C53

    #6A2C53

    oklch(39.3% 0.102 344.2)

Open the analogous palette in the generator

Split complementary

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

  • #5A336B

    #5A336B

    oklch(39.4% 0.101 314.8)

  • #4D4800

    #4D4800

    oklch(39.4% 0.084 105.1)

  • #00543B

    #00543B

    oklch(39.5% 0.083 165)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5A336B

    #5A336B

    oklch(39.4% 0.101 314.8)

  • #603E00

    #603E00

    oklch(39.4% 0.083 74.2)

  • #005151

    #005151

    oklch(39.4% 0.067 194.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5A336B

    #5A336B

    oklch(39.4% 0.101 314.8)

  • #71310F

    #71310F

    oklch(39.6% 0.101 44.9)

  • #2D5111

    #2D5111

    oklch(39.3% 0.1 134.6)

  • #004E64

    #004E64

    oklch(39.4% 0.075 224.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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