#CD171F

Closest named color: Cherry (#CF0234). oklch(54.1% 0.21 26.8), rgb(205, 23, 31).

Aa

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

About this color

#CD171F is a medium-dark, vivid red. In OKLCH its lightness is 54%, its chroma 0.210 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.61:1.

Hue familyReds
Lightnessmedium-dark (54%)
Chromavivid (0.210)
Temperaturewarm
Nearest nameCherry (#CF0234)
Black text3.73:1
White text5.61:1

Values

HEX#CD171F
RGBrgb(205, 23, 31)
HSLhsl(357, 80%, 45%)
OKLCHoklch(54.1% 0.21 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 #CD171F 5.61:1 AA Lc -81.2 Fine for body text
Black text on #CD171F 3.73:1 AA large text Lc 28.2 Dividers and decoration only
#CD171F text on white 5.61:1 AA Lc 75.9 Fine for body text
#CD171F text on black 3.73:1 AA large text Lc -25.9 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

    #FACDC7

    oklch(88.6% 0.052 27)

  4. Step 300

    300

    #F8A9A0

    oklch(80.9% 0.095 26.5)

  5. Step 400

    400

    #F0776C

    oklch(70.7% 0.151 26.9)

  6. Step 500

    500

    #E74B44

    oklch(63.1% 0.194 26.8)

  7. Step 600

    600 (this color)

    #CD171F

    oklch(54.1% 0.21 26.8)

  8. Step 700

    700

    #B60A17

    oklch(49.1% 0.196 26.7)

  9. Step 800

    800

    #941316

    oklch(42.8% 0.162 26.8)

  10. Step 900

    900

    #761B19

    oklch(37.6% 0.126 26.6)

  11. Step 950

    950

    #461210

    oklch(27% 0.08 26.2)

Export this scale for Tailwind in the Tailwind colors tool

#CD171F 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)#594F1C0.230
Deuteranopia (no green cones)#8375130.209
Tritanopia (no blue cones)#E2001E0.041
Achromatopsia (no color)#6767670.212

Harmonies

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

Complementary

The opposite hue (180°).

  • #CD171F

    #CD171F

    oklch(54.1% 0.21 26.8)

  • #007E8A

    #007E8A

    oklch(54.2% 0.093 206.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #CD171F

    #CD171F

    oklch(54.1% 0.21 26.8)

  • #C41771

    #C41771

    oklch(54.1% 0.21 356.9)

  • #A65700

    #A65700

    oklch(54.1% 0.131 56.9)

Open the analogous palette in the generator

Split complementary

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

  • #CD171F

    #CD171F

    oklch(54.1% 0.21 26.8)

  • #00826E

    #00826E

    oklch(54.2% 0.101 176.9)

  • #0078AA

    #0078AA

    oklch(54.2% 0.117 236.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #CD171F

    #CD171F

    oklch(54.1% 0.21 26.8)

  • #00862D

    #00862D

    oklch(54% 0.162 146.7)

  • #385FE7

    #385FE7

    oklch(54.2% 0.21 266.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #CD171F

    #CD171F

    oklch(54.1% 0.21 26.8)

  • #6B7700

    #6B7700

    oklch(54% 0.124 116.5)

  • #007E8A

    #007E8A

    oklch(54.2% 0.093 206.5)

  • #7F46D7

    #7F46D7

    oklch(54% 0.21 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 #CD171F, closest first.

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

Similar named colors

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

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