#D8172F

Closest named color: Crimson (#DC143C). oklch(56.3% 0.218 23.6), rgb(216, 23, 47).

Aa

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

About this color

#D8172F is a medium-dark, vivid red. In OKLCH its lightness is 56%, its chroma 0.218 and its hue 24°. Its hue sits on the warm side of the wheel. The nearest named color is Crimson (#DC143C), ΔE 0.016 away. White text reads best on it, at 5.14:1.

Hue familyReds
Lightnessmedium-dark (56%)
Chromavivid (0.218)
Temperaturewarm
Nearest nameCrimson (#DC143C)
Black text4.08:1
White text5.14:1

Values

HEX#D8172F
RGBrgb(216, 23, 47)
HSLhsl(353, 81%, 47%)
OKLCHoklch(56.3% 0.218 23.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 #D8172F 5.14:1 AA Lc -78.6 Fine for body text
Black text on #D8172F 4.08:1 AA large text Lc 30.9 Non-text elements, placeholder text
#D8172F text on white 5.14:1 AA Lc 73.2 Content text, not long reading
#D8172F text on black 4.08:1 AA large text Lc -28.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

    #FDE3E1

    oklch(93.6% 0.029 23)

  3. Step 200

    200

    #FBCCC8

    oklch(88.5% 0.054 23.9)

  4. Step 300

    300

    #FAA8A2

    oklch(81% 0.098 24.1)

  5. Step 400

    400

    #F37470

    oklch(70.8% 0.157 23.7)

  6. Step 500

    500

    #EA464A

    oklch(63.1% 0.201 23.8)

  7. Step 600

    600 (this color)

    #D8172F

    oklch(56.3% 0.218 23.6)

  8. Step 700

    700

    #B70022

    oklch(49.2% 0.199 23.5)

  9. Step 800

    800

    #96081C

    oklch(42.8% 0.168 23.6)

  10. Step 900

    900

    #78171D

    oklch(37.7% 0.131 23.3)

  11. Step 950

    950

    #471011

    oklch(27% 0.084 23.8)

Export this scale for Tailwind in the Tailwind colors tool

#D8172F 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)#5C542E0.241
Deuteranopia (no green cones)#8A7B260.218
Tritanopia (no blue cones)#EE00240.043
Achromatopsia (no color)#6D6D6D0.220

Harmonies

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

Complementary

The opposite hue (180°).

  • #D8172F

    #D8172F

    oklch(56.3% 0.218 23.6)

  • #00858F

    #00858F

    oklch(56.2% 0.096 204.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D8172F

    #D8172F

    oklch(56.3% 0.218 23.6)

  • #CC1C7F

    #CC1C7F

    oklch(56.3% 0.218 353.5)

  • #B35900

    #B35900

    oklch(56.3% 0.142 53.6)

Open the analogous palette in the generator

Split complementary

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

  • #D8172F

    #D8172F

    oklch(56.3% 0.218 23.6)

  • #008970

    #008970

    oklch(56.2% 0.107 173.8)

  • #007FAF

    #007FAF

    oklch(56.2% 0.118 233.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D8172F

    #D8172F

    oklch(56.3% 0.218 23.6)

  • #008F16

    #008F16

    oklch(56.4% 0.185 143.6)

  • #2D67F3

    #2D67F3

    oklch(56.3% 0.219 263.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D8172F

    #D8172F

    oklch(56.3% 0.218 23.6)

  • #767D00

    #767D00

    oklch(56.5% 0.127 113.6)

  • #00858F

    #00858F

    oklch(56.2% 0.096 204.1)

  • #804DE6

    #804DE6

    oklch(56.2% 0.219 293.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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