#ca7ef1
a light, electric violet · warm · closest name: violet
RGB
202, 126, 241
HSL
280°, 80%, 72%
CMYK
16, 48, 0, 6
Luminance
0.3383
Every format
| HEX | #ca7ef1 |
| RGB | rgb(202, 126, 241) |
| HSL | hsl(280, 80%, 72%) |
| CMYK | cmyk(16%, 48%, 0%, 6%) |
| LAB | lab(64.8 48.9 -46.4) |
| LCH | lch(64.8 67.4 316.5) |
| OKLCH | oklch(0.717 0.177 313.2) |
Copy-ready code
/* CSS */
color: #ca7ef1;
background-color: #ca7ef1;
/* Tailwind (arbitrary) */
class="text-[#ca7ef1] bg-[#ca7ef1]"
/* SCSS */
$brand: #ca7ef1;
/* SwiftUI */
Color(red: 0.792, green: 0.494, blue: 0.945)
/* Android */
Color.parseColor("#ca7ef1")Accessibility — WCAG contrast
Aa
#ca7ef1 on white: 2.70:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ca7ef1 on black: 7.77:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red79.2%
Green49.4%
Blue94.5%
CMYK percentages
Cyan16.2%
Magenta47.7%
Yellow0.0%
Key (black)5.5%
Color previews
#ca7ef1 text on a black background
contrast 7.77:1
Card sample
#ca7ef1 text on a white background
contrast 2.70:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ca7ef1;
Background color
Panel with #ca7ef1 background
background-color: #ca7ef1;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ca7ef1;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(202, 126, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(202, 126, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ca7ef1; background: linear-gradient(135deg, #ca7ef1, #F17ECB);