#ab8afd
a light, electric violet · warm · closest name: slateblue
RGB
171, 138, 253
HSL
257°, 97%, 77%
CMYK
32, 46, 0, 1
Luminance
0.3393
Every format
| HEX | #ab8afd |
| RGB | rgb(171, 138, 253) |
| HSL | hsl(257, 97%, 77%) |
| CMYK | cmyk(32%, 46%, 0%, 1%) |
| LAB | lab(64.9 36.9 -53.1) |
| LCH | lch(64.9 64.6 304.8) |
| OKLCH | oklch(0.712 0.165 295.1) |
Copy-ready code
/* CSS */
color: #ab8afd;
background-color: #ab8afd;
/* Tailwind (arbitrary) */
class="text-[#ab8afd] bg-[#ab8afd]"
/* SCSS */
$brand: #ab8afd;
/* SwiftUI */
Color(red: 0.671, green: 0.541, blue: 0.992)
/* Android */
Color.parseColor("#ab8afd")Accessibility — WCAG contrast
Aa
#ab8afd on white: 2.70:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ab8afd on black: 7.79:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.1%
Green54.1%
Blue99.2%
CMYK percentages
Cyan32.4%
Magenta45.5%
Yellow0.0%
Key (black)0.8%
Color previews
#ab8afd text on a black background
contrast 7.79:1
Card sample
#ab8afd text on a white background
contrast 2.70:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ab8afd;
Background color
Panel with #ab8afd background
background-color: #ab8afd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ab8afd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(171, 138, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(171, 138, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ab8afd; background: linear-gradient(135deg, #ab8afd, #F88AFD);