Skip to content

#cc2ecc

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

RGB
204, 46, 204
HSL
300°, 63%, 49%
CMYK
0, 78, 0, 20
Luminance
0.1915

Every format

HEX#cc2ecc
RGBrgb(204, 46, 204)
HSLhsl(300, 63%, 49%)
CMYKcmyk(0%, 78%, 0%, 20%)
LABlab(50.9 76.1 -47.6)
LCHlch(50.9 89.8 328.0)
OKLCHoklch(0.610 0.250 328.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc2ecc on white: 4.35:1
AA ✗ fail · AA-large · AAA
Aa
#cc2ecc on black: 4.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green18.0%
Blue80.0%

CMYK percentages

Cyan0.0%
Magenta77.5%
Yellow0.0%
Key (black)20.0%

Color previews

#cc2ecc text on a black background

contrast 4.83:1

Card sample

#cc2ecc text on a white background

contrast 4.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc2ecc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc2ecc in the Color Lab