Skip to content

#df402b

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

RGB
223, 64, 43
HSL
7°, 74%, 52%
CMYK
0, 71, 81, 13
Luminance
0.1953

Every format

HEX#df402b
RGBrgb(223, 64, 43)
HSLhsl(7, 74%, 52%)
CMYKcmyk(0%, 71%, 81%, 13%)
LABlab(51.3 60.3 47.8)
LCHlch(51.3 76.9 38.4)
OKLCHoklch(0.603 0.199 30.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green25.1%
Blue16.9%

CMYK percentages

Cyan0.0%
Magenta71.3%
Yellow80.7%
Key (black)12.5%

Color previews

#df402b text on a black background

contrast 4.91:1

Card sample

#df402b text on a white background

contrast 4.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df402b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df402b in the Color Lab