Skip to content

#ccacfe

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

RGB
204, 172, 254
HSL
263°, 98%, 84%
CMYK
20, 32, 0, 0
Luminance
0.4950

Every format

HEX#ccacfe
RGBrgb(204, 172, 254)
HSLhsl(263, 98%, 84%)
CMYKcmyk(20%, 32%, 0%, 0%)
LABlab(75.8 27.5 -36.4)
LCHlch(75.8 45.6 307.1)
OKLCHoklch(0.802 0.118 301.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccacfe on white: 1.93:1
AA ✗ fail · AA-large · AAA
Aa
#ccacfe on black: 10.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green67.5%
Blue99.6%

CMYK percentages

Cyan19.7%
Magenta32.3%
Yellow0.0%
Key (black)0.4%

Color previews

#ccacfe text on a black background

contrast 10.90:1

Card sample

#ccacfe text on a white background

contrast 1.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccacfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccacfe in the Color Lab