#c7afcc
a light, soft violet · warm · closest name: silver
RGB
199, 175, 204
HSL
290°, 22%, 74%
CMYK
3, 14, 0, 20
Luminance
0.4716
Every format
| HEX | #c7afcc |
| RGB | rgb(199, 175, 204) |
| HSL | hsl(290, 22%, 74%) |
| CMYK | cmyk(3%, 14%, 0%, 20%) |
| LAB | lab(74.3 13.8 -11.5) |
| LCH | lch(74.3 18.0 320.3) |
| OKLCH | oklch(0.784 0.048 320.4) |
Copy-ready code
/* CSS */
color: #c7afcc;
background-color: #c7afcc;
/* Tailwind (arbitrary) */
class="text-[#c7afcc] bg-[#c7afcc]"
/* SCSS */
$brand: #c7afcc;
/* SwiftUI */
Color(red: 0.780, green: 0.686, blue: 0.800)
/* Android */
Color.parseColor("#c7afcc")Accessibility — WCAG contrast
Aa
#c7afcc on white: 2.01:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#c7afcc on black: 10.43:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red78.0%
Green68.6%
Blue80.0%
CMYK percentages
Cyan2.5%
Magenta14.2%
Yellow0.0%
Key (black)20.0%
Color previews
#c7afcc text on a black background
contrast 10.43:1
Card sample
#c7afcc text on a white background
contrast 2.01:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c7afcc;
Background color
Panel with #c7afcc background
background-color: #c7afcc;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c7afcc;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(199, 175, 204, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(199, 175, 204, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c7afcc; background: linear-gradient(135deg, #c7afcc, #CCAFBE);