Skip to content

#cc2dfd

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

RGB
204, 45, 253
HSL
286°, 98%, 58%
CMYK
19, 82, 0, 1
Luminance
0.2181

Every format

HEX#cc2dfd
RGBrgb(204, 45, 253)
HSLhsl(286, 98%, 58%)
CMYKcmyk(19%, 82%, 0%, 1%)
LABlab(53.8 84.6 -70.6)
LCHlch(53.8 110.2 320.1)
OKLCHoklch(0.640 0.288 316.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green17.6%
Blue99.2%

CMYK percentages

Cyan19.4%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#cc2dfd text on a black background

contrast 5.36:1

Card sample

#cc2dfd text on a white background

contrast 3.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc2dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc2dfd in the Color Lab