Skip to content

#ccabfe

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

RGB
204, 171, 254
HSL
264°, 98%, 83%
CMYK
20, 33, 0, 0
Luminance
0.4912

Every format

HEX#ccabfe
RGBrgb(204, 171, 254)
HSLhsl(264, 98%, 83%)
CMYKcmyk(20%, 33%, 0%, 0%)
LABlab(75.5 28.0 -36.7)
LCHlch(75.5 46.2 307.3)
OKLCHoklch(0.800 0.120 302.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green67.1%
Blue99.6%

CMYK percentages

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

Color previews

#ccabfe text on a black background

contrast 10.82:1

Card sample

#ccabfe text on a white background

contrast 1.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccabfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccabfe in the Color Lab