#5F406D

Closest named color: Dusk (#4E5481). oklch(42.5% 0.081 314.8), rgb(95, 64, 109).

Aa

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

About this color

#5F406D is a dark, moderately saturated purple. In OKLCH its lightness is 43%, its chroma 0.081 and its hue 315°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dusk (#4E5481), ΔE 0.062 away. White text reads best on it, at 8.60:1.

Hue familyPurples
Lightnessdark (43%)
Chromamoderately saturated (0.081)
Temperaturein between
Nearest nameDusk (#4E5481)
Black text2.44:1
White text8.60:1

Values

HEX#5F406D
RGBrgb(95, 64, 109)
HSLhsl(281, 26%, 34%)
OKLCHoklch(42.5% 0.081 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 #5F406D 8.60:1 AAA Lc -94.0 Preferred for body text
Black text on #5F406D 2.44:1 Fails Lc 14.5 Not readable
#5F406D text on white 8.60:1 AAA Lc 89.4 Fine for body text
#5F406D text on black 2.44:1 Fails Lc -12.8 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

    #F7F4F8

    oklch(97.1% 0.006 317.8)

  2. Step 100

    100

    #EDE7F0

    oklch(93.5% 0.014 314.8)

  3. Step 200

    200

    #E0D4E5

    oklch(88.5% 0.026 316.1)

  4. Step 300

    300

    #CCB8D6

    oklch(80.9% 0.047 314.5)

  5. Step 400

    400

    #B393C2

    oklch(70.8% 0.076 314.9)

  6. Step 500

    500

    #9F77B2

    oklch(63% 0.097 314.5)

  7. Step 600

    600

    #8A5F9E

    oklch(55.5% 0.106 314.5)

  8. Step 700

    700

    #754E87

    oklch(49% 0.099 314.5)

  9. Step 800

    800 (this color)

    #5F406D

    oklch(42.5% 0.081 314.8)

  10. Step 900

    900

    #4E3759

    oklch(37.7% 0.063 314.4)

  11. Step 950

    950

    #2E2034

    oklch(27% 0.041 315.5)

Export this scale for Tailwind in the Tailwind colors tool

#5F406D 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)#384A6F0.066
Deuteranopia (no green cones)#404D6C0.061
Tritanopia (no blue cones)#5E46510.055
Achromatopsia (no color)#4C4C4C0.082

Harmonies

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

Complementary

The opposite hue (180°).

  • #5F406D

    #5F406D

    oklch(42.5% 0.081 314.8)

  • #3B5828

    #3B5828

    oklch(42.5% 0.081 134.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5F406D

    #5F406D

    oklch(42.5% 0.081 314.8)

  • #4A4779

    #4A4779

    oklch(42.4% 0.082 285.1)

  • #6D3B59

    #6D3B59

    oklch(42.5% 0.081 344.3)

Open the analogous palette in the generator

Split complementary

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

  • #5F406D

    #5F406D

    oklch(42.5% 0.081 314.8)

  • #555011

    #555011

    oklch(42.4% 0.081 104.7)

  • #145C43

    #145C43

    oklch(42.5% 0.081 164.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5F406D

    #5F406D

    oklch(42.5% 0.081 314.8)

  • #684710

    #684710

    oklch(42.5% 0.081 75)

  • #005B5B

    #005B5B

    oklch(42.7% 0.073 194.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5F406D

    #5F406D

    oklch(42.5% 0.081 314.8)

  • #733F27

    #733F27

    oklch(42.6% 0.081 44.7)

  • #3B5828

    #3B5828

    oklch(42.5% 0.081 134.3)

  • #00576F

    #00576F

    oklch(42.5% 0.08 224.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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