#c98cfd
a light, electric violet · warm · closest name: violet
RGB
201, 140, 253
HSL
272°, 97%, 77%
CMYK
21, 45, 0, 1
Luminance
0.3827
Every format
| HEX | #c98cfd |
| RGB | rgb(201, 140, 253) |
| HSL | hsl(272, 97%, 77%) |
| CMYK | cmyk(21%, 45%, 0%, 1%) |
| LAB | lab(68.2 43.8 -47.6) |
| LCH | lch(68.2 64.7 312.6) |
| OKLCH | oklch(0.744 0.168 307.7) |
Copy-ready code
/* CSS */
color: #c98cfd;
background-color: #c98cfd;
/* Tailwind (arbitrary) */
class="text-[#c98cfd] bg-[#c98cfd]"
/* SCSS */
$brand: #c98cfd;
/* SwiftUI */
Color(red: 0.788, green: 0.549, blue: 0.992)
/* Android */
Color.parseColor("#c98cfd")Accessibility — WCAG contrast
Aa
#c98cfd on white: 2.43:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#c98cfd on black: 8.65:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red78.8%
Green54.9%
Blue99.2%
CMYK percentages
Cyan20.6%
Magenta44.7%
Yellow0.0%
Key (black)0.8%
Color previews
#c98cfd text on a black background
contrast 8.65:1
Card sample
#c98cfd text on a white background
contrast 2.43:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c98cfd;
Background color
Panel with #c98cfd background
background-color: #c98cfd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c98cfd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(201, 140, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(201, 140, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c98cfd; background: linear-gradient(135deg, #c98cfd, #FD8CE6);