#c397fd
a light, electric violet · warm · closest name: violet
RGB
195, 151, 253
HSL
266°, 96%, 79%
CMYK
23, 40, 0, 1
Luminance
0.4083
Every format
| HEX | #c397fd |
| RGB | rgb(195, 151, 253) |
| HSL | hsl(266, 96%, 79%) |
| CMYK | cmyk(23%, 40%, 0%, 1%) |
| LAB | lab(70.0 36.2 -44.8) |
| LCH | lch(70.0 57.6 308.9) |
| OKLCH | oklch(0.756 0.148 302.9) |
Copy-ready code
/* CSS */
color: #c397fd;
background-color: #c397fd;
/* Tailwind (arbitrary) */
class="text-[#c397fd] bg-[#c397fd]"
/* SCSS */
$brand: #c397fd;
/* SwiftUI */
Color(red: 0.765, green: 0.592, blue: 0.992)
/* Android */
Color.parseColor("#c397fd")Accessibility — WCAG contrast
Aa
#c397fd on white: 2.29:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#c397fd on black: 9.17:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red76.5%
Green59.2%
Blue99.2%
CMYK percentages
Cyan22.9%
Magenta40.3%
Yellow0.0%
Key (black)0.8%
Color previews
#c397fd text on a black background
contrast 9.17:1
Card sample
#c397fd text on a white background
contrast 2.29:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c397fd;
Background color
Panel with #c397fd background
background-color: #c397fd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c397fd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(195, 151, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(195, 151, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c397fd; background: linear-gradient(135deg, #c397fd, #FD97F3);