Skip to content

#ccafe2

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

RGB
204, 175, 226
HSL
274°, 47%, 79%
CMYK
10, 23, 0, 11
Luminance
0.4899

Every format

HEX#ccafe2
RGBrgb(204, 175, 226)
HSLhsl(274, 47%, 79%)
CMYKcmyk(10%, 23%, 0%, 11%)
LABlab(75.4 19.9 -21.7)
LCHlch(75.4 29.4 312.4)
OKLCHoklch(0.796 0.077 310.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccafe2 on white: 1.94:1
AA ✗ fail · AA-large · AAA
Aa
#ccafe2 on black: 10.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green68.6%
Blue88.6%

CMYK percentages

Cyan9.7%
Magenta22.6%
Yellow0.0%
Key (black)11.4%

Color previews

#ccafe2 text on a black background

contrast 10.80:1

Card sample

#ccafe2 text on a white background

contrast 1.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccafe2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccafe2 in the Color Lab