Skip to content

#cd2a2f

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

RGB
205, 42, 47
HSL
358°, 66%, 48%
CMYK
0, 80, 77, 20
Luminance
0.1484

Every format

HEX#cd2a2f
RGBrgb(205, 42, 47)
HSLhsl(358, 66%, 48%)
CMYKcmyk(0%, 80%, 77%, 20%)
LABlab(45.4 62.0 38.5)
LCHlch(45.4 73.0 31.9)
OKLCHoklch(0.553 0.198 25.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd2a2f on white: 5.29:1
AA ✓ pass · AA-large · AAA
Aa
#cd2a2f on black: 3.97:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green16.5%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta79.5%
Yellow77.1%
Key (black)19.6%

Color previews

#cd2a2f text on a black background

contrast 3.97:1

Card sample

#cd2a2f text on a white background

contrast 5.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd2a2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd2a2f in the Color Lab