Skip to content

#cc9df9

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

RGB
204, 157, 249
HSL
271°, 89%, 80%
CMYK
18, 37, 0, 2
Luminance
0.4379

Every format

HEX#cc9df9
RGBrgb(204, 157, 249)
HSLhsl(271, 89%, 80%)
CMYKcmyk(18%, 37%, 0%, 2%)
LABlab(72.1 34.6 -39.4)
LCHlch(72.1 52.4 311.3)
OKLCHoklch(0.773 0.136 306.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc9df9 on white: 2.15:1
AA ✗ fail · AA-large · AAA
Aa
#cc9df9 on black: 9.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green61.6%
Blue97.6%

CMYK percentages

Cyan18.1%
Magenta36.9%
Yellow0.0%
Key (black)2.4%

Color previews

#cc9df9 text on a black background

contrast 9.76:1

Card sample

#cc9df9 text on a white background

contrast 2.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc9df9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc9df9 in the Color Lab