#5F316D

Closest named color: Dark Slate Blue (#483D8B). oklch(39.9% 0.11 317.8), rgb(95, 49, 109).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (40%)
Chromamoderately saturated (0.110)
Temperaturein between
Nearest nameDark Slate Blue (#483D8B)
Black text2.14:1
White text9.78:1

Values

HEX#5F316D
RGBrgb(95, 49, 109)
HSLhsl(286, 38%, 31%)
OKLCHoklch(39.9% 0.11 317.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 #5F316D 9.78:1 AAA Lc -96.6 Preferred for body text
Black text on #5F316D 2.14:1 Fails Lc 11.6 Not readable
#5F316D text on white 9.78:1 AAA Lc 92.4 Preferred for body text
#5F316D text on black 2.14: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

    #F9F3FA

    oklch(97.1% 0.011 321.3)

  2. Step 100

    100

    #F1E5F4

    oklch(93.6% 0.024 319.5)

  3. Step 200

    200

    #E6D0ED

    oklch(88.4% 0.046 318)

  4. Step 300

    300

    #D7B0E4

    oklch(80.9% 0.083 317.6)

  5. Step 400

    400

    #C285D6

    oklch(70.7% 0.132 317.5)

  6. Step 500

    500

    #B264CA

    oklch(63.1% 0.167 317.8)

  7. Step 600

    600

    #9E47B7

    oklch(55.6% 0.183 318.1)

  8. Step 700

    700

    #87389E

    oklch(49.2% 0.17 317.9)

  9. Step 800

    800

    #6D2F80

    oklch(42.6% 0.141 317.5)

  10. Step 900

    900 (this color)

    #5F316D

    oklch(39.9% 0.11 317.8)

  11. Step 950

    950

    #341A3C

    oklch(27% 0.069 317.8)

Export this scale for Tailwind in the Tailwind colors tool

#5F316D 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)#25416F0.099
Deuteranopia (no green cones)#33456B0.088
Tritanopia (no blue cones)#5F3A4A0.070
Achromatopsia (no color)#4444440.110

Harmonies

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

Complementary

The opposite hue (180°).

  • #5F316D

    #5F316D

    oklch(39.9% 0.11 317.8)

  • #265410

    #265410

    oklch(39.8% 0.109 137.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5F316D

    #5F316D

    oklch(39.9% 0.11 317.8)

  • #463B7E

    #463B7E

    oklch(39.9% 0.109 288)

  • #702A52

    #702A52

    oklch(40% 0.11 347.9)

Open the analogous palette in the generator

Split complementary

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

  • #5F316D

    #5F316D

    oklch(39.9% 0.11 317.8)

  • #4C4A00

    #4C4A00

    oklch(39.8% 0.086 108)

  • #00553F

    #00553F

    oklch(39.9% 0.081 168)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5F316D

    #5F316D

    oklch(39.9% 0.11 317.8)

  • #604100

    #604100

    oklch(40% 0.083 78.1)

  • #005254

    #005254

    oklch(39.8% 0.068 197.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5F316D

    #5F316D

    oklch(39.9% 0.11 317.8)

  • #743000

    #743000

    oklch(39.8% 0.109 47.6)

  • #265410

    #265410

    oklch(39.8% 0.109 137.7)

  • #004F68

    #004F68

    oklch(39.9% 0.078 227.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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