#ab7af4
a light, electric violet · warm · closest name: slateblue
RGB
171, 122, 244
HSL
264°, 85%, 72%
CMYK
30, 50, 0, 4
Luminance
0.2911
Every format
| HEX | #ab7af4 |
| RGB | rgb(171, 122, 244) |
| HSL | hsl(264, 85%, 72%) |
| CMYK | cmyk(30%, 50%, 0%, 4%) |
| LAB | lab(60.9 43.6 -54.5) |
| LCH | lch(60.9 69.8 308.6) |
| OKLCH | oklch(0.681 0.178 300.3) |
Copy-ready code
/* CSS */
color: #ab7af4;
background-color: #ab7af4;
/* Tailwind (arbitrary) */
class="text-[#ab7af4] bg-[#ab7af4]"
/* SCSS */
$brand: #ab7af4;
/* SwiftUI */
Color(red: 0.671, green: 0.478, blue: 0.957)
/* Android */
Color.parseColor("#ab7af4")Accessibility — WCAG contrast
Aa
#ab7af4 on white: 3.08:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ab7af4 on black: 6.82:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.1%
Green47.8%
Blue95.7%
CMYK percentages
Cyan29.9%
Magenta50.0%
Yellow0.0%
Key (black)4.3%
Color previews
#ab7af4 text on a black background
contrast 6.82:1
Card sample
#ab7af4 text on a white background
contrast 3.08:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ab7af4;
Background color
Panel with #ab7af4 background
background-color: #ab7af4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ab7af4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(171, 122, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(171, 122, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ab7af4; background: linear-gradient(135deg, #ab7af4, #F47AEC);