Skip to content

#cc0afd

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

RGB
204, 10, 253
HSL
288°, 98%, 52%
CMYK
19, 96, 0, 1
Luminance
0.2015

Every format

HEX#cc0afd
RGBrgb(204, 10, 253)
HSLhsl(288, 98%, 52%)
CMYKcmyk(19%, 96%, 0%, 1%)
LABlab(52.0 89.9 -73.6)
LCHlch(52.0 116.2 320.7)
OKLCHoklch(0.628 0.303 316.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc0afd on white: 4.18:1
AA ✗ fail · AA-large · AAA
Aa
#cc0afd on black: 5.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green3.9%
Blue99.2%

CMYK percentages

Cyan19.4%
Magenta96.0%
Yellow0.0%
Key (black)0.8%

Color previews

#cc0afd text on a black background

contrast 5.03:1

Card sample

#cc0afd text on a white background

contrast 4.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc0afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc0afd in the Color Lab