Skip to content

#cc2cfd

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

RGB
204, 44, 253
HSL
286°, 98%, 58%
CMYK
19, 83, 0, 1
Luminance
0.2173

Every format

HEX#cc2cfd
RGBrgb(204, 44, 253)
HSLhsl(286, 98%, 58%)
CMYKcmyk(19%, 83%, 0%, 1%)
LABlab(53.7 84.8 -70.7)
LCHlch(53.7 110.4 320.2)
OKLCHoklch(0.640 0.288 316.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green17.3%
Blue99.2%

CMYK percentages

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

Color previews

#cc2cfd text on a black background

contrast 5.35:1

Card sample

#cc2cfd text on a white background

contrast 3.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc2cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc2cfd in the Color Lab