Skip to content

#cc1f49

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

RGB
204, 31, 73
HSL
345°, 74%, 46%
CMYK
0, 85, 64, 20
Luminance
0.1430

Every format

HEX#cc1f49
RGBrgb(204, 31, 73)
HSLhsl(345, 74%, 46%)
CMYKcmyk(0%, 85%, 64%, 20%)
LABlab(44.7 65.6 22.0)
LCHlch(44.7 69.2 18.6)
OKLCHoklch(0.549 0.203 15.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc1f49 on white: 5.44:1
AA ✓ pass · AA-large · AAA
Aa
#cc1f49 on black: 3.86:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green12.2%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta84.8%
Yellow64.2%
Key (black)20.0%

Color previews

#cc1f49 text on a black background

contrast 3.86:1

Card sample

#cc1f49 text on a white background

contrast 5.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(204, 31, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 31, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc1f49;
background: linear-gradient(135deg, #cc1f49, #CC681F);

Monochromatic scale

Palettes built from #cc1f49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc1f49 in the Color Lab