Skip to content

#ccabf2

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

RGB
204, 171, 242
HSL
268°, 73%, 81%
CMYK
16, 29, 0, 5
Luminance
0.4837

Every format

HEX#ccabf2
RGBrgb(204, 171, 242)
HSLhsl(268, 73%, 81%)
CMYKcmyk(16%, 29%, 0%, 5%)
LABlab(75.1 25.4 -31.0)
LCHlch(75.1 40.0 309.3)
OKLCHoklch(0.795 0.104 305.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccabf2 on white: 1.97:1
AA ✗ fail · AA-large · AAA
Aa
#ccabf2 on black: 10.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green67.1%
Blue94.9%

CMYK percentages

Cyan15.7%
Magenta29.3%
Yellow0.0%
Key (black)5.1%

Color previews

#ccabf2 text on a black background

contrast 10.67:1

Card sample

#ccabf2 text on a white background

contrast 1.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccabf2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccabf2 in the Color Lab