Skip to content

#cc5df5

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

RGB
204, 93, 245
HSL
284°, 88%, 66%
CMYK
17, 62, 0, 4
Luminance
0.2726

Every format

HEX#cc5df5
RGBrgb(204, 93, 245)
HSLhsl(284, 88%, 66%)
CMYKcmyk(17%, 62%, 0%, 4%)
LABlab(59.2 66.3 -57.5)
LCHlch(59.2 87.8 319.1)
OKLCHoklch(0.677 0.231 315.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc5df5 on white: 3.25:1
AA ✗ fail · AA-large · AAA
Aa
#cc5df5 on black: 6.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green36.5%
Blue96.1%

CMYK percentages

Cyan16.7%
Magenta62.0%
Yellow0.0%
Key (black)3.9%

Color previews

#cc5df5 text on a black background

contrast 6.45:1

Card sample

#cc5df5 text on a white background

contrast 3.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc5df5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc5df5 in the Color Lab