#5F417E

Closest named color: Dark Slate Blue (#483D8B). oklch(43.6% 0.102 305.3), rgb(95, 65, 126).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (44%)
Chromamoderately saturated (0.102)
Temperaturein between
Nearest nameDark Slate Blue (#483D8B)
Black text2.54:1
White text8.25:1

Values

HEX#5F417E
RGBrgb(95, 65, 126)
HSLhsl(270, 32%, 37%)
OKLCHoklch(43.6% 0.102 305.3)

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 #5F417E 8.25:1 AAA Lc -93.0 Preferred for body text
Black text on #5F417E 2.54:1 Fails Lc 15.6 Dividers and decoration only
#5F417E text on white 8.25:1 AAA Lc 88.4 Fine for body text
#5F417E text on black 2.54:1 Fails Lc -13.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

    #F7F4FA

    oklch(97.1% 0.009 308.4)

  2. Step 100

    100

    #ECE7F3

    oklch(93.5% 0.017 304.8)

  3. Step 200

    200

    #DED4EB

    oklch(88.5% 0.033 305.3)

  4. Step 300

    300

    #C9B7E0

    oklch(80.8% 0.06 305)

  5. Step 400

    400

    #AF91D0

    oklch(70.7% 0.096 305.9)

  6. Step 500

    500

    #9B75C4

    oklch(63.1% 0.122 305.3)

  7. Step 600

    600

    #865CB1

    oklch(55.6% 0.134 305.3)

  8. Step 700

    700

    #714C98

    oklch(49.1% 0.123 304.8)

  9. Step 800

    800 (this color)

    #5F417E

    oklch(43.6% 0.102 305.3)

  10. Step 900

    900

    #4C3663

    oklch(37.8% 0.079 305.5)

  11. Step 950

    950

    #2C203A

    oklch(27% 0.049 304.5)

Export this scale for Tailwind in the Tailwind colors tool

#5F417E 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)#314E800.075
Deuteranopia (no green cones)#384F7C0.069
Tritanopia (no blue cones)#5A4B590.076
Achromatopsia (no color)#4F4F4F0.102

Harmonies

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

Complementary

The opposite hue (180°).

  • #5F417E

    #5F417E

    oklch(43.6% 0.102 305.3)

  • #445B0E

    #445B0E

    oklch(43.7% 0.103 125.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5F417E

    #5F417E

    oklch(43.6% 0.102 305.3)

  • #424B89

    #424B89

    oklch(43.6% 0.102 275.1)

  • #733967

    #733967

    oklch(43.6% 0.102 335.5)

Open the analogous palette in the generator

Split complementary

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

  • #5F417E

    #5F417E

    oklch(43.6% 0.102 305.3)

  • #615000

    #615000

    oklch(43.6% 0.089 94.8)

  • #0D6138

    #0D6138

    oklch(43.5% 0.101 155.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5F417E

    #5F417E

    oklch(43.6% 0.102 305.3)

  • #754400

    #754400

    oklch(43.5% 0.098 65.2)

  • #005F57

    #005F57

    oklch(43.7% 0.077 184.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5F417E

    #5F417E

    oklch(43.6% 0.102 305.3)

  • #803928

    #803928

    oklch(43.6% 0.103 34.7)

  • #445B0E

    #445B0E

    oklch(43.7% 0.103 125.6)

  • #005C6C

    #005C6C

    oklch(43.7% 0.077 214.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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