Skip to content

#cc9df6

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

RGB
204, 157, 246
HSL
272°, 83%, 79%
CMYK
17, 36, 0, 4
Luminance
0.4361

Every format

HEX#cc9df6
RGBrgb(204, 157, 246)
HSLhsl(272, 83%, 79%)
CMYKcmyk(17%, 36%, 0%, 4%)
LABlab(72.0 33.9 -37.9)
LCHlch(72.0 50.9 311.8)
OKLCHoklch(0.772 0.133 307.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc9df6 on white: 2.16:1
AA ✗ fail · AA-large · AAA
Aa
#cc9df6 on black: 9.72:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green61.6%
Blue96.5%

CMYK percentages

Cyan17.1%
Magenta36.2%
Yellow0.0%
Key (black)3.5%

Color previews

#cc9df6 text on a black background

contrast 9.72:1

Card sample

#cc9df6 text on a white background

contrast 2.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc9df6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc9df6 in the Color Lab