#9D172A

Closest named color: Auburn (#9B2226). oklch(45.1% 0.166 20.8), rgb(157, 23, 42).

Aa

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

About this color

#9D172A is a medium-dark, vivid red. In OKLCH its lightness is 45%, its chroma 0.166 and its hue 21°. Its hue sits on the warm side of the wheel. The nearest named color is Auburn (#9B2226), ΔE 0.015 away. White text reads best on it, at 8.10:1.

Hue familyReds
Lightnessmedium-dark (45%)
Chromavivid (0.166)
Temperaturewarm
Nearest nameAuburn (#9B2226)
Black text2.58:1
White text8.10:1

Values

HEX#9D172A
RGBrgb(157, 23, 42)
HSLhsl(351, 74%, 35%)
OKLCHoklch(45.1% 0.166 20.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 #9D172A 8.10:1 AAA Lc -91.1 Preferred for body text
Black text on #9D172A 2.58:1 Fails Lc 17.7 Dividers and decoration only
#9D172A text on white 8.10:1 AAA Lc 86.3 Fine for body text
#9D172A text on black 2.58:1 Fails Lc -15.7 Dividers and decoration only

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

    #FEF2F2

    oklch(97.1% 0.013 17.4)

  2. Step 100

    100

    #FCE3E2

    oklch(93.6% 0.028 20.4)

  3. Step 200

    200

    #FBCCCA

    oklch(88.5% 0.054 21.1)

  4. Step 300

    300

    #F9A7A6

    oklch(80.8% 0.097 20.2)

  5. Step 400

    400

    #F27476

    oklch(70.7% 0.155 20.9)

  6. Step 500

    500

    #E94653

    oklch(63.1% 0.199 20.7)

  7. Step 600

    600

    #D41337

    oklch(55.5% 0.216 20.8)

  8. Step 700

    700

    #B6002B

    oklch(49.1% 0.197 20.8)

  9. Step 800

    800 (this color)

    #9D172A

    oklch(45.1% 0.166 20.8)

  10. Step 900

    900

    #781722

    oklch(37.8% 0.131 20.5)

  11. Step 950

    950

    #471014

    oklch(27% 0.083 20.8)

Export this scale for Tailwind in the Tailwind colors tool

#9D172A 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)#433E290.184
Deuteranopia (no green cones)#635A250.169
Tritanopia (no blue cones)#AD00200.033
Achromatopsia (no color)#5050500.168

Harmonies

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

Complementary

The opposite hue (180°).

  • #9D172A

    #9D172A

    oklch(45.1% 0.166 20.8)

  • #006267

    #006267

    oklch(45.1% 0.077 200.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #9D172A

    #9D172A

    oklch(45.1% 0.166 20.8)

  • #931B61

    #931B61

    oklch(45% 0.166 350.7)

  • #873E00

    #873E00

    oklch(45.2% 0.118 51)

Open the analogous palette in the generator

Split complementary

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

  • #9D172A

    #9D172A

    oklch(45.1% 0.166 20.8)

  • #00654F

    #00654F

    oklch(45.1% 0.088 171.1)

  • #005E7E

    #005E7E

    oklch(45.1% 0.09 230.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #9D172A

    #9D172A

    oklch(45.1% 0.166 20.8)

  • #156800

    #156800

    oklch(45.1% 0.148 140.9)

  • #164EB0

    #164EB0

    oklch(45.1% 0.167 260.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #9D172A

    #9D172A

    oklch(45.1% 0.166 20.8)

  • #585A00

    #585A00

    oklch(45.1% 0.099 111.3)

  • #006267

    #006267

    oklch(45.1% 0.077 200.9)

  • #593BA9

    #593BA9

    oklch(45% 0.167 290.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #9D172A 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.