Skip to content

#cc16fd

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

RGB
204, 22, 253
HSL
287°, 98%, 54%
CMYK
19, 91, 0, 1
Luminance
0.2050

Every format

HEX#cc16fd
RGBrgb(204, 22, 253)
HSLhsl(287, 98%, 54%)
CMYKcmyk(19%, 91%, 0%, 1%)
LABlab(52.4 88.7 -72.9)
LCHlch(52.4 114.8 320.6)
OKLCHoklch(0.630 0.300 316.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc16fd on white: 4.12:1
AA ✗ fail · AA-large · AAA
Aa
#cc16fd on black: 5.10:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green8.6%
Blue99.2%

CMYK percentages

Cyan19.4%
Magenta91.3%
Yellow0.0%
Key (black)0.8%

Color previews

#cc16fd text on a black background

contrast 5.10:1

Card sample

#cc16fd text on a white background

contrast 4.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc16fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc16fd in the Color Lab