Skip to content

#cc9df8

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

RGB
204, 157, 248
HSL
271°, 87%, 79%
CMYK
18, 37, 0, 3
Luminance
0.4373

Every format

HEX#cc9df8
RGBrgb(204, 157, 248)
HSLhsl(271, 87%, 79%)
CMYKcmyk(18%, 37%, 0%, 3%)
LABlab(72.0 34.3 -38.9)
LCHlch(72.0 51.9 311.4)
OKLCHoklch(0.773 0.135 307.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

Cyan17.7%
Magenta36.7%
Yellow0.0%
Key (black)2.7%

Color previews

#cc9df8 text on a black background

contrast 9.75:1

Card sample

#cc9df8 text on a white background

contrast 2.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc9df8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc9df8 in the Color Lab