Skip to content

#df402f

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

RGB
223, 64, 47
HSL
6°, 73%, 53%
CMYK
0, 71, 79, 13
Luminance
0.1956

Every format

HEX#df402f
RGBrgb(223, 64, 47)
HSLhsl(6, 73%, 53%)
CMYKcmyk(0%, 71%, 79%, 13%)
LABlab(51.3 60.4 45.8)
LCHlch(51.3 75.8 37.2)
OKLCHoklch(0.604 0.199 30.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df402f on white: 4.28:1
AA ✗ fail · AA-large · AAA
Aa
#df402f on black: 4.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green25.1%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta71.3%
Yellow78.9%
Key (black)12.5%

Color previews

#df402f text on a black background

contrast 4.91:1

Card sample

#df402f text on a white background

contrast 4.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df402f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df402f in the Color Lab