Skip to content

#ccacfc

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

RGB
204, 172, 252
HSL
264°, 93%, 83%
CMYK
19, 32, 0, 1
Luminance
0.4937

Every format

HEX#ccacfc
RGBrgb(204, 172, 252)
HSLhsl(264, 93%, 83%)
CMYKcmyk(19%, 32%, 0%, 1%)
LABlab(75.7 27.0 -35.4)
LCHlch(75.7 44.5 307.3)
OKLCHoklch(0.801 0.116 302.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green67.5%
Blue98.8%

CMYK percentages

Cyan19.0%
Magenta31.7%
Yellow0.0%
Key (black)1.2%

Color previews

#ccacfc text on a black background

contrast 10.87:1

Card sample

#ccacfc text on a white background

contrast 1.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccacfc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccacfc in the Color Lab