Skip to content

#ccbafc

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

RGB
204, 186, 252
HSL
256°, 92%, 86%
CMYK
19, 26, 0, 1
Luminance
0.5498

Every format

HEX#ccbafc
RGBrgb(204, 186, 252)
HSLhsl(256, 92%, 86%)
CMYKcmyk(19%, 26%, 0%, 1%)
LABlab(79.0 19.4 -30.3)
LCHlch(79.0 35.9 302.6)
OKLCHoklch(0.827 0.093 296.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccbafc on white: 1.75:1
AA ✗ fail · AA-large · AAA
Aa
#ccbafc on black: 12.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green72.9%
Blue98.8%

CMYK percentages

Cyan19.0%
Magenta26.2%
Yellow0.0%
Key (black)1.2%

Color previews

#ccbafc text on a black background

contrast 12.00:1

Card sample

#ccbafc text on a white background

contrast 1.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccbafc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccbafc in the Color Lab