Skip to content

#ccafd4

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

RGB
204, 175, 212
HSL
287°, 30%, 76%
CMYK
4, 18, 0, 17
Luminance
0.4825

Every format

HEX#ccafd4
RGBrgb(204, 175, 212)
HSLhsl(287, 30%, 76%)
CMYKcmyk(4%, 18%, 0%, 17%)
LABlab(75.0 17.1 -14.8)
LCHlch(75.0 22.6 319.1)
OKLCHoklch(0.791 0.060 318.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccafd4 on white: 1.97:1
AA ✗ fail · AA-large · AAA
Aa
#ccafd4 on black: 10.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green68.6%
Blue83.1%

CMYK percentages

Cyan3.8%
Magenta17.5%
Yellow0.0%
Key (black)16.9%

Color previews

#ccafd4 text on a black background

contrast 10.65:1

Card sample

#ccafd4 text on a white background

contrast 1.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccafd4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccafd4 in the Color Lab