Skip to content

#ccbafe

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

RGB
204, 186, 254
HSL
256°, 97%, 86%
CMYK
20, 27, 0, 0
Luminance
0.5511

Every format

HEX#ccbafe
RGBrgb(204, 186, 254)
HSLhsl(256, 97%, 86%)
CMYKcmyk(20%, 27%, 0%, 0%)
LABlab(79.1 19.8 -31.2)
LCHlch(79.1 37.0 302.4)
OKLCHoklch(0.828 0.096 296.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green72.9%
Blue99.6%

CMYK percentages

Cyan19.7%
Magenta26.8%
Yellow0.0%
Key (black)0.4%

Color previews

#ccbafe text on a black background

contrast 12.02:1

Card sample

#ccbafe text on a white background

contrast 1.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccbafe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccbafe in the Color Lab