Skip to content

#cc2cfc

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

RGB
204, 44, 252
HSL
286°, 97%, 58%
CMYK
19, 83, 0, 1
Luminance
0.2167

Every format

HEX#cc2cfc
RGBrgb(204, 44, 252)
HSLhsl(286, 97%, 58%)
CMYKcmyk(19%, 83%, 0%, 1%)
LABlab(53.7 84.6 -70.3)
LCHlch(53.7 110.0 320.3)
OKLCHoklch(0.639 0.287 316.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc2cfc on white: 3.94:1
AA ✗ fail · AA-large · AAA
Aa
#cc2cfc on black: 5.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green17.3%
Blue98.8%

CMYK percentages

Cyan19.0%
Magenta82.5%
Yellow0.0%
Key (black)1.2%

Color previews

#cc2cfc text on a black background

contrast 5.33:1

Card sample

#cc2cfc text on a white background

contrast 3.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc2cfc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc2cfc in the Color Lab