Skip to content

#cc2cfe

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

RGB
204, 44, 254
HSL
286°, 99%, 58%
CMYK
20, 83, 0, 0
Luminance
0.2179

Every format

HEX#cc2cfe
RGBrgb(204, 44, 254)
HSLhsl(286, 99%, 58%)
CMYKcmyk(20%, 83%, 0%, 0%)
LABlab(53.8 85.0 -71.2)
LCHlch(53.8 110.8 320.0)
OKLCHoklch(0.640 0.289 315.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc2cfe on white: 3.92:1
AA ✗ fail · AA-large · AAA
Aa
#cc2cfe on black: 5.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green17.3%
Blue99.6%

CMYK percentages

Cyan19.7%
Magenta82.7%
Yellow0.0%
Key (black)0.4%

Color previews

#cc2cfe text on a black background

contrast 5.36:1

Card sample

#cc2cfe text on a white background

contrast 3.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc2cfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc2cfe in the Color Lab