Skip to content

#cc2acd

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

RGB
204, 42, 205
HSL
300°, 66%, 48%
CMYK
1, 80, 0, 20
Luminance
0.1890

Every format

HEX#cc2acd
RGBrgb(204, 42, 205)
HSLhsl(300, 66%, 48%)
CMYKcmyk(1%, 80%, 0%, 20%)
LABlab(50.6 77.3 -48.7)
LCHlch(50.6 91.4 327.8)
OKLCHoklch(0.608 0.254 327.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc2acd on white: 4.39:1
AA ✗ fail · AA-large · AAA
Aa
#cc2acd on black: 4.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green16.5%
Blue80.4%

CMYK percentages

Cyan0.5%
Magenta79.5%
Yellow0.0%
Key (black)19.6%

Color previews

#cc2acd text on a black background

contrast 4.78:1

Card sample

#cc2acd text on a white background

contrast 4.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc2acd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc2acd in the Color Lab