Skip to content

#ccacf0

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

RGB
204, 172, 240
HSL
268°, 69%, 81%
CMYK
15, 28, 0, 6
Luminance
0.4863

Every format

HEX#ccacf0
RGBrgb(204, 172, 240)
HSLhsl(268, 69%, 81%)
CMYKcmyk(15%, 28%, 0%, 6%)
LABlab(75.2 24.4 -29.6)
LCHlch(75.2 38.4 309.5)
OKLCHoklch(0.796 0.100 305.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green67.5%
Blue94.1%

CMYK percentages

Cyan15.0%
Magenta28.3%
Yellow0.0%
Key (black)5.9%

Color previews

#ccacf0 text on a black background

contrast 10.73:1

Card sample

#ccacf0 text on a white background

contrast 1.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccacf0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccacf0 in the Color Lab