#5F336C

Closest named color: Dark Slate Blue (#483D8B). oklch(40.1% 0.105 318.1), rgb(95, 51, 108).

Aa

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

About this color

#5F336C is a dark, moderately saturated purple. In OKLCH its lightness is 40%, its chroma 0.105 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.64:1.

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

Values

HEX#5F336C
RGBrgb(95, 51, 108)
HSLhsl(286, 36%, 31%)
OKLCHoklch(40.1% 0.105 318.1)

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 #5F336C 9.64:1 AAA Lc -96.3 Preferred for body text
Black text on #5F336C 2.17:1 Fails Lc 11.9 Not readable
#5F336C text on white 9.64:1 AAA Lc 92.1 Preferred for body text
#5F336C text on black 2.17:1 Fails Lc -10.3 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

    #F0E5F4

    oklch(93.5% 0.023 317.1)

  3. Step 200

    200

    #E6D1EC

    oklch(88.6% 0.043 318.7)

  4. Step 300

    300

    #D6B1E2

    oklch(80.9% 0.079 317.8)

  5. Step 400

    400

    #C186D3

    oklch(70.6% 0.126 318.1)

  6. Step 500

    500

    #B166C7

    oklch(63.1% 0.16 318.2)

  7. Step 600

    600

    #9C4AB4

    oklch(55.6% 0.175 318)

  8. Step 700

    700

    #853A9B

    oklch(49% 0.163 317.9)

  9. Step 800

    800

    #6C317D

    oklch(42.6% 0.134 318.1)

  10. Step 900

    900 (this color)

    #5F336C

    oklch(40.1% 0.105 318.1)

  11. Step 950

    950

    #341B3B

    oklch(27.1% 0.066 318.6)

Export this scale for Tailwind in the Tailwind colors tool

#5F336C 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)#28426E0.095
Deuteranopia (no green cones)#36466A0.084
Tritanopia (no blue cones)#5F3B4A0.068
Achromatopsia (no color)#4545450.105

Harmonies

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

Complementary

The opposite hue (180°).

  • #5F336C

    #5F336C

    oklch(40.1% 0.105 318.1)

  • #285516

    #285516

    oklch(40.3% 0.105 138.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5F336C

    #5F336C

    oklch(40.1% 0.105 318.1)

  • #473C7C

    #473C7C

    oklch(40.1% 0.104 288.7)

  • #6F2D52

    #6F2D52

    oklch(40.2% 0.104 348)

Open the analogous palette in the generator

Split complementary

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

  • #5F336C

    #5F336C

    oklch(40.1% 0.105 318.1)

  • #4D4B00

    #4D4B00

    oklch(40.2% 0.087 108)

  • #005640

    #005640

    oklch(40.3% 0.081 168.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5F336C

    #5F336C

    oklch(40.1% 0.105 318.1)

  • #604100

    #604100

    oklch(40% 0.083 78.1)

  • #005355

    #005355

    oklch(40.1% 0.068 197.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5F336C

    #5F336C

    oklch(40.1% 0.105 318.1)

  • #733206

    #733206

    oklch(40% 0.105 47.8)

  • #285516

    #285516

    oklch(40.3% 0.105 138.2)

  • #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 #5F336C, closest first.

Similar named colors

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

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