#5F173F

Closest named color: Grape Purple (#5D1451). oklch(33.9% 0.112 350.6), rgb(95, 23, 63).

Aa

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

About this color

#5F173F is a dark, moderately saturated red. In OKLCH its lightness is 34%, its chroma 0.112 and its hue 351°. Its hue sits on the warm side of the wheel. The nearest named color is Grape Purple (#5D1451), ΔE 0.035 away. White text reads best on it, at 12.49:1.

Hue familyReds
Lightnessdark (34%)
Chromamoderately saturated (0.112)
Temperaturewarm
Nearest nameGrape Purple (#5D1451)
Black text1.68:1
White text12.49:1

Values

HEX#5F173F
RGBrgb(95, 23, 63)
HSLhsl(327, 61%, 23%)
OKLCHoklch(33.9% 0.112 350.6)

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 #5F173F 12.49:1 AAA Lc -101.0 Preferred for body text
Black text on #5F173F 1.68:1 Fails Lc 0.0 Not readable
#5F173F text on white 12.49:1 AAA Lc 97.5 Preferred for body text
#5F173F text on black 1.68:1 Fails Lc 0.0 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

    #FCF2F6

    oklch(97% 0.012 351)

  2. Step 100

    100

    #F8E4EC

    oklch(93.7% 0.024 351.3)

  3. Step 200

    200

    #F2CDDD

    oklch(88.4% 0.046 350.2)

  4. Step 300

    300

    #EBABC8

    oklch(80.9% 0.083 350.3)

  5. Step 400

    400

    #DE7BAB

    oklch(70.6% 0.134 350.6)

  6. Step 500

    500

    #D25597

    oklch(63% 0.172 350.4)

  7. Step 600

    600

    #BD3581

    oklch(55.5% 0.186 350.6)

  8. Step 700

    700

    #A3266D

    oklch(49.1% 0.173 350.8)

  9. Step 800

    800

    #842259

    oklch(42.7% 0.143 350.5)

  10. Step 900

    900 (this color)

    #5F173F

    oklch(33.9% 0.112 350.6)

  11. Step 950

    950

    #3F152B

    oklch(27% 0.072 350.4)

Export this scale for Tailwind in the Tailwind colors tool

#5F173F 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)#222C400.125
Deuteranopia (no green cones)#37383D0.110
Tritanopia (no blue cones)#6613280.042
Achromatopsia (no color)#3434340.113

Harmonies

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

Complementary

The opposite hue (180°).

  • #5F173F

    #5F173F

    oklch(33.9% 0.112 350.6)

  • #004233

    #004233

    oklch(33.8% 0.066 171.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5F173F

    #5F173F

    oklch(33.9% 0.112 350.6)

  • #501F5A

    #501F5A

    oklch(33.9% 0.111 320.5)

  • #65161D

    #65161D

    oklch(33.9% 0.111 20.9)

Open the analogous palette in the generator

Split complementary

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

  • #5F173F

    #5F173F

    oklch(33.9% 0.112 350.6)

  • #0C4400

    #0C4400

    oklch(33.8% 0.11 140.6)

  • #004044

    #004044

    oklch(33.8% 0.058 201.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5F173F

    #5F173F

    oklch(33.9% 0.112 350.6)

  • #3A3B00

    #3A3B00

    oklch(34% 0.075 110.8)

  • #003D54

    #003D54

    oklch(33.8% 0.068 231.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5F173F

    #5F173F

    oklch(33.9% 0.112 350.6)

  • #4A3300

    #4A3300

    oklch(33.9% 0.07 80.9)

  • #004233

    #004233

    oklch(33.8% 0.066 171.5)

  • #113470

    #113470

    oklch(33.9% 0.112 260.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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