Skip to content

#cc2cdf

a balanced, vivid magenta / pink · warm · closest name: magenta

RGB
204, 44, 223
HSL
294°, 74%, 52%
CMYK
9, 80, 0, 13
Luminance
0.1997

Every format

HEX#cc2cdf
RGBrgb(204, 44, 223)
HSLhsl(294, 74%, 52%)
CMYKcmyk(9%, 80%, 0%, 13%)
LABlab(51.8 79.7 -57.0)
LCHlch(51.8 98.0 324.4)
OKLCHoklch(0.620 0.266 323.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc2cdf on white: 4.21:1
AA ✗ fail · AA-large · AAA
Aa
#cc2cdf on black: 4.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green17.3%
Blue87.5%

CMYK percentages

Cyan8.5%
Magenta80.3%
Yellow0.0%
Key (black)12.5%

Color previews

#cc2cdf text on a black background

contrast 4.99:1

Card sample

#cc2cdf text on a white background

contrast 4.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc2cdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc2cdf in the Color Lab