Skip to content

#cc2d52

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

RGB
204, 45, 82
HSL
346°, 64%, 49%
CMYK
0, 78, 60, 20
Luminance
0.1532

Every format

HEX#cc2d52
RGBrgb(204, 45, 82)
HSLhsl(346, 64%, 49%)
CMYKcmyk(0%, 78%, 60%, 20%)
LABlab(46.1 62.6 18.3)
LCHlch(46.1 65.2 16.3)
OKLCHoklch(0.560 0.194 13.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc2d52 on white: 5.17:1
AA ✓ pass · AA-large · AAA
Aa
#cc2d52 on black: 4.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green17.6%
Blue32.2%

CMYK percentages

Cyan0.0%
Magenta77.9%
Yellow59.8%
Key (black)20.0%

Color previews

#cc2d52 text on a black background

contrast 4.06:1

Card sample

#cc2d52 text on a white background

contrast 5.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc2d52

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc2d52 in the Color Lab