Skip to content

#cc2adc

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

RGB
204, 42, 220
HSL
295°, 72%, 51%
CMYK
7, 81, 0, 14
Luminance
0.1966

Every format

HEX#cc2adc
RGBrgb(204, 42, 220)
HSLhsl(295, 72%, 51%)
CMYKcmyk(7%, 81%, 0%, 14%)
LABlab(51.5 79.7 -55.9)
LCHlch(51.5 97.3 325.0)
OKLCHoklch(0.617 0.265 323.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc2adc on white: 4.26:1
AA ✗ fail · AA-large · AAA
Aa
#cc2adc on black: 4.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green16.5%
Blue86.3%

CMYK percentages

Cyan7.3%
Magenta80.9%
Yellow0.0%
Key (black)13.7%

Color previews

#cc2adc text on a black background

contrast 4.93:1

Card sample

#cc2adc text on a white background

contrast 4.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc2adc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc2adc in the Color Lab