Skip to content

#cc5cfd

a light, electric violet · warm · closest name: violet

RGB
204, 92, 253
HSL
282°, 98%, 68%
CMYK
19, 64, 0, 1
Luminance
0.2758

Every format

HEX#cc5cfd
RGBrgb(204, 92, 253)
HSLhsl(282, 98%, 68%)
CMYKcmyk(19%, 64%, 0%, 1%)
LABlab(59.5 68.4 -61.4)
LCHlch(59.5 91.9 318.1)
OKLCHoklch(0.681 0.240 313.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc5cfd on white: 3.22:1
AA ✗ fail · AA-large · AAA
Aa
#cc5cfd on black: 6.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green36.1%
Blue99.2%

CMYK percentages

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

Color previews

#cc5cfd text on a black background

contrast 6.52:1

Card sample

#cc5cfd text on a white background

contrast 3.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc5cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc5cfd in the Color Lab