Skip to content

#d02c2f

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

RGB
208, 44, 47
HSL
359°, 65%, 49%
CMYK
0, 79, 77, 18
Luminance
0.1542

Every format

HEX#d02c2f
RGBrgb(208, 44, 47)
HSLhsl(359, 65%, 49%)
CMYKcmyk(0%, 79%, 77%, 18%)
LABlab(46.2 62.3 39.6)
LCHlch(46.2 73.8 32.4)
OKLCHoklch(0.560 0.200 25.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d02c2f on white: 5.14:1
AA ✓ pass · AA-large · AAA
Aa
#d02c2f on black: 4.08:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.6%
Green17.3%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta78.8%
Yellow77.4%
Key (black)18.4%

Color previews

#d02c2f text on a black background

contrast 4.08:1

Card sample

#d02c2f text on a white background

contrast 5.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d02c2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d02c2f in the Color Lab