#AF172D

Closest named color: Rouge (#AB1239). oklch(48.6% 0.183 21.4), rgb(175, 23, 45).

Aa

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

About this color

#AF172D is a medium-dark, vivid red. In OKLCH its lightness is 49%, its chroma 0.183 and its hue 21°. Its hue sits on the warm side of the wheel. The nearest named color is Rouge (#AB1239), ΔE 0.020 away. White text reads best on it, at 7.03:1.

Hue familyReds
Lightnessmedium-dark (49%)
Chromavivid (0.183)
Temperaturewarm
Nearest nameRouge (#AB1239)
Black text2.98:1
White text7.03:1

Values

HEX#AF172D
RGBrgb(175, 23, 45)
HSLhsl(351, 77%, 39%)
OKLCHoklch(48.6% 0.183 21.4)

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 #AF172D 7.03:1 AAA Lc -87.6 Fine for body text
Black text on #AF172D 2.98:1 Fails Lc 21.5 Dividers and decoration only
#AF172D text on white 7.03:1 AAA Lc 82.5 Fine for body text
#AF172D text on black 2.98:1 Fails Lc -19.4 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 700.

  1. Step 50

    50

    #FDF3F2

    oklch(97.2% 0.011 24.3)

  2. Step 100

    100

    #FBE4E2

    oklch(93.7% 0.025 23.6)

  3. Step 200

    200

    #F8CDCB

    oklch(88.5% 0.049 21.2)

  4. Step 300

    300

    #F5AAA8

    oklch(80.9% 0.089 20.9)

  5. Step 400

    400

    #EC7979

    oklch(70.7% 0.142 21.3)

  6. Step 500

    500

    #E25057

    oklch(63.1% 0.181 21.3)

  7. Step 600

    600

    #CD2B3C

    oklch(55.6% 0.196 21.5)

  8. Step 700

    700 (this color)

    #AF172D

    oklch(48.6% 0.183 21.4)

  9. Step 800

    800

    #901B27

    oklch(42.8% 0.151 21.6)

  10. Step 900

    900

    #731F24

    oklch(37.7% 0.117 21.6)

  11. Step 950

    950

    #441416

    oklch(27% 0.074 21.1)

Export this scale for Tailwind in the Tailwind colors tool

#AF172D 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)#4A442C0.203
Deuteranopia (no green cones)#6F64270.184
Tritanopia (no blue cones)#C100220.036
Achromatopsia (no color)#5959590.184

Harmonies

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

Complementary

The opposite hue (180°).

  • #AF172D

    #AF172D

    oklch(48.6% 0.183 21.4)

  • #006D73

    #006D73

    oklch(48.7% 0.083 201.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF172D

    #AF172D

    oklch(48.6% 0.183 21.4)

  • #A41C6B

    #A41C6B

    oklch(48.5% 0.182 351.2)

  • #954500

    #954500

    oklch(48.5% 0.127 50.9)

Open the analogous palette in the generator

Split complementary

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

  • #AF172D

    #AF172D

    oklch(48.6% 0.183 21.4)

  • #007058

    #007058

    oklch(48.5% 0.095 171.2)

  • #00688D

    #00688D

    oklch(48.6% 0.099 231.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF172D

    #AF172D

    oklch(48.6% 0.183 21.4)

  • #137400

    #137400

    oklch(48.7% 0.161 141.4)

  • #1A56C4

    #1A56C4

    oklch(48.5% 0.183 261.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF172D

    #AF172D

    oklch(48.6% 0.183 21.4)

  • #626400

    #626400

    oklch(48.5% 0.107 111.1)

  • #006D73

    #006D73

    oklch(48.7% 0.083 201.5)

  • #6541BC

    #6541BC

    oklch(48.6% 0.183 291.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #AF172D 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.