Skip to content

#ccaafd

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

RGB
204, 170, 253
HSL
265°, 95%, 83%
CMYK
19, 33, 0, 1
Luminance
0.4868

Every format

HEX#ccaafd
RGBrgb(204, 170, 253)
HSLhsl(265, 95%, 83%)
CMYKcmyk(19%, 33%, 0%, 1%)
LABlab(75.3 28.3 -36.6)
LCHlch(75.3 46.3 307.7)
OKLCHoklch(0.798 0.120 302.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccaafd on white: 1.96:1
AA ✗ fail · AA-large · AAA
Aa
#ccaafd on black: 10.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green66.7%
Blue99.2%

CMYK percentages

Cyan19.4%
Magenta32.8%
Yellow0.0%
Key (black)0.8%

Color previews

#ccaafd text on a black background

contrast 10.74:1

Card sample

#ccaafd text on a white background

contrast 1.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccaafd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccaafd in the Color Lab