#5F336D

Closest named color: Dark Slate Blue (#483D8B). oklch(40.2% 0.106 317.5), rgb(95, 51, 109).

Aa

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

About this color

#5F336D is a dark, moderately saturated purple. In OKLCH its lightness is 40%, its chroma 0.106 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.066 away. White text reads best on it, at 9.62:1.

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

Values

HEX#5F336D
RGBrgb(95, 51, 109)
HSLhsl(286, 36%, 31%)
OKLCHoklch(40.2% 0.106 317.5)

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 #5F336D 9.62:1 AAA Lc -96.3 Preferred for body text
Black text on #5F336D 2.18:1 Fails Lc 11.9 Not readable
#5F336D text on white 9.62:1 AAA Lc 92.0 Preferred for body text
#5F336D text on black 2.18:1 Fails Lc -10.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 800.

  1. Step 50

    50

    #F8F4F9

    oklch(97.2% 0.008 319.4)

  2. Step 100

    100

    #EFE6F2

    oklch(93.5% 0.019 317.7)

  3. Step 200

    200

    #E3D2E8

    oklch(88.4% 0.035 318.5)

  4. Step 300

    300

    #D1B5DB

    oklch(80.9% 0.061 317.1)

  5. Step 400

    400

    #BA8DC9

    oklch(70.7% 0.099 317.5)

  6. Step 500

    500

    #A96FBB

    oklch(63.1% 0.127 317.9)

  7. Step 600

    600

    #9456A7

    oklch(55.6% 0.138 317.9)

  8. Step 700

    700

    #7E468F

    oklch(49.1% 0.127 317.9)

  9. Step 800

    800 (this color)

    #5F336D

    oklch(40.2% 0.106 317.5)

  10. Step 900

    900

    #53325E

    oklch(37.6% 0.083 317.3)

  11. Step 950

    950

    #311E37

    oklch(27.1% 0.052 317.8)

Export this scale for Tailwind in the Tailwind colors tool

#5F336D 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)#28426F0.094
Deuteranopia (no green cones)#35466B0.085
Tritanopia (no blue cones)#5F3B4B0.068
Achromatopsia (no color)#4545450.107

Harmonies

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

Complementary

The opposite hue (180°).

  • #5F336D

    #5F336D

    oklch(40.2% 0.106 317.5)

  • #295514

    #295514

    oklch(40.3% 0.106 137.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5F336D

    #5F336D

    oklch(40.2% 0.106 317.5)

  • #463C7D

    #463C7D

    oklch(40.1% 0.106 287.7)

  • #6F2C53

    #6F2C53

    oklch(40.1% 0.106 347)

Open the analogous palette in the generator

Split complementary

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

  • #5F336D

    #5F336D

    oklch(40.2% 0.106 317.5)

  • #4D4B00

    #4D4B00

    oklch(40.2% 0.087 108)

  • #00563F

    #00563F

    oklch(40.2% 0.082 167.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5F336D

    #5F336D

    oklch(40.2% 0.106 317.5)

  • #614100

    #614100

    oklch(40.2% 0.084 77.1)

  • #005355

    #005355

    oklch(40.1% 0.068 197.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5F336D

    #5F336D

    oklch(40.2% 0.106 317.5)

  • #743206

    #743206

    oklch(40.2% 0.106 47.5)

  • #295514

    #295514

    oklch(40.3% 0.106 137.4)

  • #005069

    #005069

    oklch(40.2% 0.078 227.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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