#cca7df
a light, vivid violet · warm · closest name: plum
RGB
204, 167, 223
HSL
280°, 47%, 77%
CMYK
9, 25, 0, 13
Luminance
0.4580
Every format
| HEX | #cca7df |
| RGB | rgb(204, 167, 223) |
| HSL | hsl(280, 47%, 77%) |
| CMYK | cmyk(9%, 25%, 0%, 13%) |
| LAB | lab(73.4 23.6 -23.2) |
| LCH | lch(73.4 33.1 315.6) |
| OKLCH | oklch(0.780 0.088 314.0) |
Copy-ready code
/* CSS */
color: #cca7df;
background-color: #cca7df;
/* Tailwind (arbitrary) */
class="text-[#cca7df] bg-[#cca7df]"
/* SCSS */
$brand: #cca7df;
/* SwiftUI */
Color(red: 0.800, green: 0.655, blue: 0.875)
/* Android */
Color.parseColor("#cca7df")Accessibility — WCAG contrast
Aa
#cca7df on white: 2.07:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cca7df on black: 10.16:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green65.5%
Blue87.5%
CMYK percentages
Cyan8.5%
Magenta25.1%
Yellow0.0%
Key (black)12.5%
Color previews
#cca7df text on a black background
contrast 10.16:1
Card sample
#cca7df text on a white background
contrast 2.07:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cca7df;
Background color
Panel with #cca7df background
background-color: #cca7df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cca7df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 167, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 167, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cca7df; background: linear-gradient(135deg, #cca7df, #DFA7CD);