Skip to content

#cc5dfb

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

RGB
204, 93, 251
HSL
282°, 95%, 68%
CMYK
19, 63, 0, 2
Luminance
0.2763

Every format

HEX#cc5dfb
RGBrgb(204, 93, 251)
HSLhsl(282, 95%, 68%)
CMYKcmyk(19%, 63%, 0%, 2%)
LABlab(59.6 67.5 -60.3)
LCHlch(59.6 90.5 318.3)
OKLCHoklch(0.681 0.237 314.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green36.5%
Blue98.4%

CMYK percentages

Cyan18.7%
Magenta62.9%
Yellow0.0%
Key (black)1.6%

Color previews

#cc5dfb text on a black background

contrast 6.53:1

Card sample

#cc5dfb text on a white background

contrast 3.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc5dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc5dfb in the Color Lab