Skip to content

#df4040

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

RGB
223, 64, 64
HSL
0°, 71%, 56%
CMYK
0, 71, 71, 13
Luminance
0.1972

Every format

HEX#df4040
RGBrgb(223, 64, 64)
HSLhsl(0, 71%, 56%)
CMYKcmyk(0%, 71%, 71%, 13%)
LABlab(51.5 61.0 36.7)
LCHlch(51.5 71.2 31.0)
OKLCHoklch(0.606 0.196 25.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df4040 on white: 4.25:1
AA ✗ fail · AA-large · AAA
Aa
#df4040 on black: 4.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green25.1%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta71.3%
Yellow71.3%
Key (black)12.5%

Color previews

#df4040 text on a black background

contrast 4.94:1

Card sample

#df4040 text on a white background

contrast 4.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df4040

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df4040 in the Color Lab