Skip to content

#cc2ffc

a balanced, electric violet · warm · closest name: magenta

RGB
204, 47, 252
HSL
286°, 97%, 59%
CMYK
19, 81, 0, 1
Luminance
0.2190

Every format

HEX#cc2ffc
RGBrgb(204, 47, 252)
HSLhsl(286, 97%, 59%)
CMYKcmyk(19%, 81%, 0%, 1%)
LABlab(53.9 83.9 -69.9)
LCHlch(53.9 109.2 320.2)
OKLCHoklch(0.641 0.285 316.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc2ffc on white: 3.90:1
AA ✗ fail · AA-large · AAA
Aa
#cc2ffc on black: 5.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green18.4%
Blue98.8%

CMYK percentages

Cyan19.0%
Magenta81.3%
Yellow0.0%
Key (black)1.2%

Color previews

#cc2ffc text on a black background

contrast 5.38:1

Card sample

#cc2ffc text on a white background

contrast 3.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc2ffc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc2ffc in the Color Lab