#5A2F72

Closest named color: Dark Slate Blue (#483D8B). oklch(39.2% 0.117 311.8), rgb(90, 47, 114).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (39%)
Chromamoderately saturated (0.117)
Temperaturein between
Nearest nameDark Slate Blue (#483D8B)
Black text2.08:1
White text10.07:1

Values

HEX#5A2F72
RGBrgb(90, 47, 114)
HSLhsl(279, 42%, 32%)
OKLCHoklch(39.2% 0.117 311.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 #5A2F72 10.07:1 AAA Lc -97.2 Preferred for body text
Black text on #5A2F72 2.08:1 Fails Lc 10.9 Not readable
#5A2F72 text on white 10.07:1 AAA Lc 93.0 Preferred for body text
#5A2F72 text on black 2.08:1 Fails Lc -9.4 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

    #F8F3FB

    oklch(97% 0.012 313.2)

  2. Step 100

    100

    #F0E5F7

    oklch(93.6% 0.027 312.6)

  3. Step 200

    200

    #E4D1F1

    oklch(88.6% 0.048 311.7)

  4. Step 300

    300

    #D4B1EA

    oklch(81% 0.087 312.1)

  5. Step 400

    400

    #BD85DF

    oklch(70.6% 0.14 311.8)

  6. Step 500

    500

    #AD63D6

    oklch(63% 0.179 312.1)

  7. Step 600

    600

    #9846C4

    oklch(55.6% 0.195 311.7)

  8. Step 700

    700

    #8237A9

    oklch(49.2% 0.18 311.8)

  9. Step 800

    800

    #6A2E89

    oklch(42.7% 0.151 312.1)

  10. Step 900

    900 (this color)

    #5A2F72

    oklch(39.2% 0.117 311.8)

  11. Step 950

    950

    #321A40

    oklch(27% 0.073 311.6)

Export this scale for Tailwind in the Tailwind colors tool

#5A2F72 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)#1B40740.101
Deuteranopia (no green cones)#2B43700.090
Tritanopia (no blue cones)#573B4B0.081
Achromatopsia (no color)#4242420.117

Harmonies

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

Complementary

The opposite hue (180°).

  • #5A2F72

    #5A2F72

    oklch(39.2% 0.117 311.8)

  • #2F5100

    #2F5100

    oklch(39.3% 0.109 131.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5A2F72

    #5A2F72

    oklch(39.2% 0.117 311.8)

  • #3E3A81

    #3E3A81

    oklch(39.2% 0.116 282.2)

  • #6D2657

    #6D2657

    oklch(39.2% 0.117 341.8)

Open the analogous palette in the generator

Split complementary

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

  • #5A2F72

    #5A2F72

    oklch(39.2% 0.117 311.8)

  • #4F4700

    #4F4700

    oklch(39.4% 0.082 102.1)

  • #005337

    #005337

    oklch(39.1% 0.085 162.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5A2F72

    #5A2F72

    oklch(39.2% 0.117 311.8)

  • #613D00

    #613D00

    oklch(39.3% 0.084 72.1)

  • #00514F

    #00514F

    oklch(39.3% 0.067 191.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5A2F72

    #5A2F72

    oklch(39.2% 0.117 311.8)

  • #762902

    #762902

    oklch(39.1% 0.117 41.7)

  • #2F5100

    #2F5100

    oklch(39.3% 0.109 131.7)

  • #004E61

    #004E61

    oklch(39.3% 0.072 221.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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