#a17ef1
a light, electric violet · warm · closest name: slateblue
RGB
161, 126, 241
HSL
258°, 80%, 72%
CMYK
33, 48, 0, 6
Luminance
0.2885
Every format
| HEX | #a17ef1 |
| RGB | rgb(161, 126, 241) |
| HSL | hsl(258, 80%, 72%) |
| CMYK | cmyk(33%, 48%, 0%, 6%) |
| LAB | lab(60.6 38.1 -53.3) |
| LCH | lch(60.6 65.5 305.6) |
| OKLCH | oklch(0.676 0.167 295.6) |
Copy-ready code
/* CSS */
color: #a17ef1;
background-color: #a17ef1;
/* Tailwind (arbitrary) */
class="text-[#a17ef1] bg-[#a17ef1]"
/* SCSS */
$brand: #a17ef1;
/* SwiftUI */
Color(red: 0.631, green: 0.494, blue: 0.945)
/* Android */
Color.parseColor("#a17ef1")Accessibility — WCAG contrast
Aa
#a17ef1 on white: 3.10:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#a17ef1 on black: 6.77:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red63.1%
Green49.4%
Blue94.5%
CMYK percentages
Cyan33.2%
Magenta47.7%
Yellow0.0%
Key (black)5.5%
Color previews
#a17ef1 text on a black background
contrast 6.77:1
Card sample
#a17ef1 text on a white background
contrast 3.10:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #a17ef1;
Background color
Panel with #a17ef1 background
background-color: #a17ef1;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #a17ef1;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(161, 126, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(161, 126, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a17ef1; background: linear-gradient(135deg, #a17ef1, #EE7EF1);