#D5271A

Closest named color: Crimson (#DC143C). oklch(56.4% 0.21 29.6), rgb(213, 39, 26).

Aa

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

About this color

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

Hue familyReds
Lightnessmedium-dark (56%)
Chromavivid (0.210)
Temperaturewarm
Nearest nameCrimson (#DC143C)
Black text4.13:1
White text5.07:1

Values

HEX#D5271A
RGBrgb(213, 39, 26)
HSLhsl(4, 78%, 47%)
OKLCHoklch(56.4% 0.21 29.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 #D5271A 5.07:1 AA Lc -78.6 Fine for body text
Black text on #D5271A 4.13:1 AA large text Lc 30.9 Non-text elements, placeholder text
#D5271A text on white 5.07:1 AA Lc 73.2 Content text, not long reading
#D5271A text on black 4.13: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

    #FEF3F0

    oklch(97.2% 0.013 35.7)

  2. Step 100

    100

    #FCE4DF

    oklch(93.7% 0.027 31.7)

  3. Step 200

    200

    #FACDC5

    oklch(88.5% 0.052 29.9)

  4. Step 300

    300

    #F8AA9D

    oklch(81% 0.095 29.7)

  5. Step 400

    400

    #F07867

    oklch(70.8% 0.151 29.6)

  6. Step 500

    500

    #E74D3C

    oklch(63.2% 0.193 29.7)

  7. Step 600

    600 (this color)

    #D5271A

    oklch(56.4% 0.21 29.6)

  8. Step 700

    700

    #B50F06

    oklch(49% 0.195 29.6)

  9. Step 800

    800

    #93150C

    oklch(42.7% 0.161 29.6)

  10. Step 900

    900

    #761C14

    oklch(37.6% 0.126 29.4)

  11. Step 950

    950

    #46130D

    oklch(27.1% 0.08 29.8)

Export this scale for Tailwind in the Tailwind colors tool

#D5271A 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)#6156150.227
Deuteranopia (no green cones)#8B7C0A0.205
Tritanopia (no blue cones)#EB00270.045
Achromatopsia (no color)#6E6E6E0.211

Harmonies

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

Complementary

The opposite hue (180°).

  • #D5271A

    #D5271A

    oklch(56.4% 0.21 29.6)

  • #008595

    #008595

    oklch(56.5% 0.098 209.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D5271A

    #D5271A

    oklch(56.4% 0.21 29.6)

  • #CE2371

    #CE2371

    oklch(56.5% 0.209 359.9)

  • #AD5F00

    #AD5F00

    oklch(56.5% 0.133 59.6)

Open the analogous palette in the generator

Split complementary

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

  • #D5271A

    #D5271A

    oklch(56.4% 0.21 29.6)

  • #008977

    #008977

    oklch(56.4% 0.103 179.2)

  • #007EB9

    #007EB9

    oklch(56.5% 0.129 239.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D5271A

    #D5271A

    oklch(56.4% 0.21 29.6)

  • #008E3E

    #008E3E

    oklch(56.5% 0.157 149.5)

  • #4864EE

    #4864EE

    oklch(56.4% 0.209 269.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D5271A

    #D5271A

    oklch(56.4% 0.21 29.6)

  • #6D8000

    #6D8000

    oklch(56.4% 0.133 119.5)

  • #008595

    #008595

    oklch(56.5% 0.098 209.5)

  • #8B4CDC

    #8B4CDC

    oklch(56.5% 0.21 299.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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