Skip to content

#df271c

a balanced, electric red · warm · closest name: tomato

RGB
223, 39, 28
HSL
3°, 78%, 49%
CMYK
0, 83, 87, 13
Luminance
0.1722

Every format

HEX#df271c
RGBrgb(223, 39, 28)
HSLhsl(3, 78%, 49%)
CMYKcmyk(0%, 83%, 87%, 13%)
LABlab(48.5 67.3 52.5)
LCHlch(48.5 85.3 37.9)
OKLCHoklch(0.582 0.218 29.3)

Copy-ready code

/* CSS */
color: #df271c;
background-color: #df271c;
/* Tailwind (arbitrary) */
class="text-[#df271c] bg-[#df271c]"
/* SCSS */
$brand: #df271c;
/* SwiftUI */
Color(red: 0.875, green: 0.153, blue: 0.110)
/* Android */
Color.parseColor("#df271c")

Accessibility — WCAG contrast

Aa
#df271c on white: 4.72:1
AA ✓ pass · AA-large · AAA
Aa
#df271c on black: 4.44:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green15.3%
Blue11.0%

CMYK percentages

Cyan0.0%
Magenta82.5%
Yellow87.4%
Key (black)12.5%

Color previews

#df271c text on a black background

contrast 4.44:1

Card sample

#df271c text on a white background

contrast 4.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #df271c;
Background color
Panel with #df271c background
background-color: #df271c;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #df271c;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(223, 39, 28, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 39, 28, 0.45);
Border & gradient
Gradient panel
border: 3px solid #df271c;
background: linear-gradient(135deg, #df271c, #DFA91C);

Monochromatic scale

Palettes built from #df271c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df271c in the Color Lab