#ccb7df
a light, soft violet · warm · closest name: plum
RGB
204, 183, 223
HSL
272°, 39%, 80%
CMYK
9, 18, 0, 13
Luminance
0.5203
Every format
| HEX | #ccb7df |
| RGB | rgb(204, 183, 223) |
| HSL | hsl(272, 39%, 80%) |
| CMYK | cmyk(9%, 18%, 0%, 13%) |
| LAB | lab(77.3 14.9 -17.3) |
| LCH | lch(77.3 22.8 310.7) |
| OKLCH | oklch(0.810 0.060 308.7) |
Copy-ready code
/* CSS */
color: #ccb7df;
background-color: #ccb7df;
/* Tailwind (arbitrary) */
class="text-[#ccb7df] bg-[#ccb7df]"
/* SCSS */
$brand: #ccb7df;
/* SwiftUI */
Color(red: 0.800, green: 0.718, blue: 0.875)
/* Android */
Color.parseColor("#ccb7df")Accessibility — WCAG contrast
Aa
#ccb7df on white: 1.84:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ccb7df on black: 11.41:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green71.8%
Blue87.5%
CMYK percentages
Cyan8.5%
Magenta17.9%
Yellow0.0%
Key (black)12.5%
Color previews
#ccb7df text on a black background
contrast 11.41:1
Card sample
#ccb7df text on a white background
contrast 1.84:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ccb7df;
Background color
Panel with #ccb7df background
background-color: #ccb7df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ccb7df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 183, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 183, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccb7df; background: linear-gradient(135deg, #ccb7df, #DFB7D7);