Skip to content

#cc1afd

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

RGB
204, 26, 253
HSL
287°, 98%, 55%
CMYK
19, 90, 0, 1
Luminance
0.2067

Every format

HEX#cc1afd
RGBrgb(204, 26, 253)
HSLhsl(287, 98%, 55%)
CMYKcmyk(19%, 90%, 0%, 1%)
LABlab(52.6 88.2 -72.6)
LCHlch(52.6 114.2 320.5)
OKLCHoklch(0.632 0.298 316.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc1afd on white: 4.09:1
AA ✗ fail · AA-large · AAA
Aa
#cc1afd on black: 5.13:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green10.2%
Blue99.2%

CMYK percentages

Cyan19.4%
Magenta89.7%
Yellow0.0%
Key (black)0.8%

Color previews

#cc1afd text on a black background

contrast 5.13:1

Card sample

#cc1afd text on a white background

contrast 4.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc1afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc1afd in the Color Lab