Skip to content

#ccaffc

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

RGB
204, 175, 252
HSL
263°, 93%, 84%
CMYK
19, 31, 0, 1
Luminance
0.5053

Every format

HEX#ccaffc
RGBrgb(204, 175, 252)
HSLhsl(263, 93%, 84%)
CMYKcmyk(19%, 31%, 0%, 1%)
LABlab(76.4 25.4 -34.3)
LCHlch(76.4 42.7 306.5)
OKLCHoklch(0.806 0.111 301.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccaffc on white: 1.89:1
AA ✗ fail · AA-large · AAA
Aa
#ccaffc on black: 11.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green68.6%
Blue98.8%

CMYK percentages

Cyan19.0%
Magenta30.6%
Yellow0.0%
Key (black)1.2%

Color previews

#ccaffc text on a black background

contrast 11.11:1

Card sample

#ccaffc text on a white background

contrast 1.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccaffc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccaffc in the Color Lab