Skip to content

#ccafdf

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

RGB
204, 175, 223
HSL
276°, 43%, 78%
CMYK
9, 22, 0, 13
Luminance
0.4883

Every format

HEX#ccafdf
RGBrgb(204, 175, 223)
HSLhsl(276, 43%, 78%)
CMYKcmyk(9%, 22%, 0%, 13%)
LABlab(75.3 19.2 -20.2)
LCHlch(75.3 27.9 313.5)
OKLCHoklch(0.795 0.074 311.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccafdf on white: 1.95:1
AA ✗ fail · AA-large · AAA
Aa
#ccafdf on black: 10.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green68.6%
Blue87.5%

CMYK percentages

Cyan8.5%
Magenta21.5%
Yellow0.0%
Key (black)12.5%

Color previews

#ccafdf text on a black background

contrast 10.77:1

Card sample

#ccafdf text on a white background

contrast 1.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccafdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccafdf in the Color Lab