Skip to content

#cc2df4

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

RGB
204, 45, 244
HSL
288°, 90%, 57%
CMYK
16, 82, 0, 4
Luminance
0.2125

Every format

HEX#cc2df4
RGBrgb(204, 45, 244)
HSLhsl(288, 90%, 57%)
CMYKcmyk(16%, 82%, 0%, 4%)
LABlab(53.2 83.0 -66.6)
LCHlch(53.2 106.4 321.3)
OKLCHoklch(0.634 0.281 318.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc2df4 on white: 4.00:1
AA ✗ fail · AA-large · AAA
Aa
#cc2df4 on black: 5.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green17.6%
Blue95.7%

CMYK percentages

Cyan16.4%
Magenta81.6%
Yellow0.0%
Key (black)4.3%

Color previews

#cc2df4 text on a black background

contrast 5.25:1

Card sample

#cc2df4 text on a white background

contrast 4.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc2df4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc2df4 in the Color Lab