#c98afd
a light, electric violet · warm · closest name: violet
RGB
201, 138, 253
HSL
273°, 97%, 77%
CMYK
21, 46, 0, 1
Luminance
0.3769
Every format
| HEX | #c98afd |
| RGB | rgb(201, 138, 253) |
| HSL | hsl(273, 97%, 77%) |
| CMYK | cmyk(21%, 46%, 0%, 1%) |
| LAB | lab(67.8 44.9 -48.3) |
| LCH | lch(67.8 65.9 312.9) |
| OKLCH | oklch(0.741 0.171 308.0) |
Copy-ready code
/* CSS */
color: #c98afd;
background-color: #c98afd;
/* Tailwind (arbitrary) */
class="text-[#c98afd] bg-[#c98afd]"
/* SCSS */
$brand: #c98afd;
/* SwiftUI */
Color(red: 0.788, green: 0.541, blue: 0.992)
/* Android */
Color.parseColor("#c98afd")Accessibility — WCAG contrast
Aa
#c98afd on white: 2.46:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#c98afd on black: 8.54:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red78.8%
Green54.1%
Blue99.2%
CMYK percentages
Cyan20.6%
Magenta45.5%
Yellow0.0%
Key (black)0.8%
Color previews
#c98afd text on a black background
contrast 8.54:1
Card sample
#c98afd text on a white background
contrast 2.46:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c98afd;
Background color
Panel with #c98afd background
background-color: #c98afd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c98afd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(201, 138, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(201, 138, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c98afd; background: linear-gradient(135deg, #c98afd, #FD8AE4);