#D0171F

Closest named color: Cherry (#CF0234). oklch(54.7% 0.213 26.8), rgb(208, 23, 31).

Aa

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

About this color

#D0171F is a medium-dark, vivid red. In OKLCH its lightness is 55%, its chroma 0.213 and its hue 27°. Its hue sits on the warm side of the wheel. The nearest named color is Cherry (#CF0234), ΔE 0.025 away. White text reads best on it, at 5.49:1.

Hue familyReds
Lightnessmedium-dark (55%)
Chromavivid (0.213)
Temperaturewarm
Nearest nameCherry (#CF0234)
Black text3.82:1
White text5.49:1

Values

HEX#D0171F
RGBrgb(208, 23, 31)
HSLhsl(357, 80%, 45%)
OKLCHoklch(54.7% 0.213 26.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 #D0171F 5.49:1 AA Lc -80.6 Fine for body text
Black text on #D0171F 3.82:1 AA large text Lc 28.9 Dividers and decoration only
#D0171F text on white 5.49:1 AA Lc 75.2 Fine for body text
#D0171F text on black 3.82:1 AA large text Lc -26.5 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 600.

  1. Step 50

    50

    #FEF2F1

    oklch(97% 0.013 23.2)

  2. Step 100

    100

    #FCE3E0

    oklch(93.5% 0.028 25.9)

  3. Step 200

    200

    #FBCCC6

    oklch(88.4% 0.054 26.7)

  4. Step 300

    300

    #F8A99F

    oklch(80.9% 0.095 27.3)

  5. Step 400

    400

    #F1766B

    oklch(70.7% 0.154 26.9)

  6. Step 500

    500

    #E84A43

    oklch(63.1% 0.196 26.9)

  7. Step 600

    600 (this color)

    #D0171F

    oklch(54.7% 0.213 26.8)

  8. Step 700

    700

    #B70515

    oklch(49.2% 0.198 26.8)

  9. Step 800

    800

    #941015

    oklch(42.6% 0.164 26.6)

  10. Step 900

    900

    #771A18

    oklch(37.7% 0.128 26.8)

  11. Step 950

    950

    #46120F

    oklch(27% 0.08 27.1)

Export this scale for Tailwind in the Tailwind colors tool

#D0171F 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)#5A501C0.233
Deuteranopia (no green cones)#8577120.212
Tritanopia (no blue cones)#E6001E0.043
Achromatopsia (no color)#6969690.214

Harmonies

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

Complementary

The opposite hue (180°).

  • #D0171F

    #D0171F

    oklch(54.7% 0.213 26.8)

  • #00808C

    #00808C

    oklch(54.8% 0.094 206.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D0171F

    #D0171F

    oklch(54.7% 0.213 26.8)

  • #C71773

    #C71773

    oklch(54.7% 0.213 356.8)

  • #A95800

    #A95800

    oklch(54.7% 0.133 56.4)

Open the analogous palette in the generator

Split complementary

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

  • #D0171F

    #D0171F

    oklch(54.7% 0.213 26.8)

  • #00836F

    #00836F

    oklch(54.5% 0.101 177)

  • #0079AD

    #0079AD

    oklch(54.6% 0.12 237.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D0171F

    #D0171F

    oklch(54.7% 0.213 26.8)

  • #00882F

    #00882F

    oklch(54.6% 0.163 146.9)

  • #3960EA

    #3960EA

    oklch(54.6% 0.213 266.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D0171F

    #D0171F

    oklch(54.7% 0.213 26.8)

  • #6C7900

    #6C7900

    oklch(54.6% 0.126 117)

  • #00808C

    #00808C

    oklch(54.8% 0.094 206.3)

  • #8147DA

    #8147DA

    oklch(54.6% 0.212 296.8)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #D0171F.

Similar named colors

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

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