#ccbafd
a pale, electric violet · warm · closest name: plum
RGB
204, 186, 253
HSL
256°, 94%, 86%
CMYK
19, 27, 0, 1
Luminance
0.5505
Every format
| HEX | #ccbafd |
| RGB | rgb(204, 186, 253) |
| HSL | hsl(256, 94%, 86%) |
| CMYK | cmyk(19%, 27%, 0%, 1%) |
| LAB | lab(79.1 19.6 -30.7) |
| LCH | lch(79.1 36.4 302.5) |
| OKLCH | oklch(0.827 0.094 296.6) |
Copy-ready code
/* CSS */
color: #ccbafd;
background-color: #ccbafd;
/* Tailwind (arbitrary) */
class="text-[#ccbafd] bg-[#ccbafd]"
/* SCSS */
$brand: #ccbafd;
/* SwiftUI */
Color(red: 0.800, green: 0.729, blue: 0.992)
/* Android */
Color.parseColor("#ccbafd")Accessibility — WCAG contrast
Aa
#ccbafd on white: 1.75:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ccbafd on black: 12.01:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green72.9%
Blue99.2%
CMYK percentages
Cyan19.4%
Magenta26.5%
Yellow0.0%
Key (black)0.8%
Color previews
#ccbafd text on a black background
contrast 12.01:1
Card sample
#ccbafd text on a white background
contrast 1.75:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ccbafd;
Background color
Panel with #ccbafd background
background-color: #ccbafd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ccbafd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 186, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 186, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccbafd; background: linear-gradient(135deg, #ccbafd, #F9BAFD);