Skip to content

#cc9dfb

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

RGB
204, 157, 251
HSL
270°, 92%, 80%
CMYK
19, 38, 0, 2
Luminance
0.4392

Every format

HEX#cc9dfb
RGBrgb(204, 157, 251)
HSLhsl(270, 92%, 80%)
CMYKcmyk(19%, 38%, 0%, 2%)
LABlab(72.2 35.0 -40.3)
LCHlch(72.2 53.4 311.0)
OKLCHoklch(0.774 0.139 306.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green61.6%
Blue98.4%

CMYK percentages

Cyan18.7%
Magenta37.5%
Yellow0.0%
Key (black)1.6%

Color previews

#cc9dfb text on a black background

contrast 9.78:1

Card sample

#cc9dfb text on a white background

contrast 2.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc9dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc9dfb in the Color Lab