Skip to content

#cc2dfc

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

RGB
204, 45, 252
HSL
286°, 97%, 58%
CMYK
19, 82, 0, 1
Luminance
0.2174

Every format

HEX#cc2dfc
RGBrgb(204, 45, 252)
HSLhsl(286, 97%, 58%)
CMYKcmyk(19%, 82%, 0%, 1%)
LABlab(53.8 84.4 -70.2)
LCHlch(53.8 109.7 320.3)
OKLCHoklch(0.639 0.287 316.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc2dfc on white: 3.93:1
AA ✗ fail · AA-large · AAA
Aa
#cc2dfc on black: 5.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green17.6%
Blue98.8%

CMYK percentages

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

Color previews

#cc2dfc text on a black background

contrast 5.35:1

Card sample

#cc2dfc text on a white background

contrast 3.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc2dfc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc2dfc in the Color Lab