Skip to content

#cc6dfd

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

RGB
204, 109, 253
HSL
280°, 97%, 71%
CMYK
19, 57, 0, 1
Luminance
0.3087

Every format

HEX#cc6dfd
RGBrgb(204, 109, 253)
HSLhsl(280, 97%, 71%)
CMYKcmyk(19%, 57%, 0%, 1%)
LABlab(62.4 60.5 -56.8)
LCHlch(62.4 83.0 316.8)
OKLCHoklch(0.702 0.216 312.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc6dfd on white: 2.93:1
AA ✗ fail · AA-large · AAA
Aa
#cc6dfd on black: 7.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green42.7%
Blue99.2%

CMYK percentages

Cyan19.4%
Magenta56.9%
Yellow0.0%
Key (black)0.8%

Color previews

#cc6dfd text on a black background

contrast 7.17:1

Card sample

#cc6dfd text on a white background

contrast 2.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc6dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc6dfd in the Color Lab