#D5271F

Closest named color: Crimson (#DC143C). oklch(56.4% 0.209 28.8), rgb(213, 39, 31).

Aa

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

About this color

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

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

Values

HEX#D5271F
RGBrgb(213, 39, 31)
HSLhsl(3, 75%, 48%)
OKLCHoklch(56.4% 0.209 28.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 #D5271F 5.07:1 AA Lc -78.6 Fine for body text
Black text on #D5271F 4.13:1 AA large text Lc 30.9 Non-text elements, placeholder text
#D5271F text on white 5.07:1 AA Lc 73.2 Content text, not long reading
#D5271F 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

    #FEF2F1

    oklch(97% 0.013 23.2)

  2. Step 100

    100

    #FCE4E0

    oklch(93.7% 0.027 28.9)

  3. Step 200

    200

    #FACDC6

    oklch(88.5% 0.052 28.5)

  4. Step 300

    300

    #F7AA9E

    oklch(80.9% 0.093 29.1)

  5. Step 400

    400

    #F07869

    oklch(70.8% 0.151 28.7)

  6. Step 500

    500

    #E64D3F

    oklch(63.1% 0.192 28.9)

  7. Step 600

    600 (this color)

    #D5271F

    oklch(56.4% 0.209 28.8)

  8. Step 700

    700

    #B50F0D

    oklch(49.1% 0.194 28.7)

  9. Step 800

    800

    #931510

    oklch(42.7% 0.161 28.7)

  10. Step 900

    900

    #761C15

    oklch(37.7% 0.125 28.9)

  11. Step 950

    950

    #46130E

    oklch(27.1% 0.079 28.9)

Export this scale for Tailwind in the Tailwind colors tool

#D5271F 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)#61561B0.226
Deuteranopia (no green cones)#8B7C130.205
Tritanopia (no blue cones)#EB00280.044
Achromatopsia (no color)#6E6E6E0.211

Harmonies

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

Complementary

The opposite hue (180°).

  • #D5271F

    #D5271F

    oklch(56.4% 0.209 28.8)

  • #008594

    #008594

    oklch(56.4% 0.097 208.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D5271F

    #D5271F

    oklch(56.4% 0.209 28.8)

  • #CD2473

    #CD2473

    oklch(56.4% 0.209 359)

  • #AE5E00

    #AE5E00

    oklch(56.4% 0.134 58.5)

Open the analogous palette in the generator

Split complementary

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

  • #D5271F

    #D5271F

    oklch(56.4% 0.209 28.8)

  • #008977

    #008977

    oklch(56.4% 0.103 179.2)

  • #007EB7

    #007EB7

    oklch(56.4% 0.126 238.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D5271F

    #D5271F

    oklch(56.4% 0.209 28.8)

  • #008E3B

    #008E3B

    oklch(56.5% 0.16 148.8)

  • #4565EE

    #4565EE

    oklch(56.4% 0.209 268.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D5271F

    #D5271F

    oklch(56.4% 0.209 28.8)

  • #6E8000

    #6E8000

    oklch(56.5% 0.133 119.1)

  • #008594

    #008594

    oklch(56.4% 0.097 208.6)

  • #894DDD

    #894DDD

    oklch(56.5% 0.209 298.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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