#ab49df
a balanced, vivid violet · warm · closest name: slateblue
RGB
171, 73, 223
HSL
279°, 70%, 58%
CMYK
23, 67, 0, 13
Luminance
0.1875
Every format
| HEX | #ab49df |
| RGB | rgb(171, 73, 223) |
| HSL | hsl(279, 70%, 58%) |
| CMYK | cmyk(23%, 67%, 0%, 13%) |
| LAB | lab(50.4 63.4 -59.5) |
| LCH | lch(50.4 87.0 316.8) |
| OKLCH | oklch(0.600 0.224 311.5) |
Copy-ready code
/* CSS */
color: #ab49df;
background-color: #ab49df;
/* Tailwind (arbitrary) */
class="text-[#ab49df] bg-[#ab49df]"
/* SCSS */
$brand: #ab49df;
/* SwiftUI */
Color(red: 0.671, green: 0.286, blue: 0.875)
/* Android */
Color.parseColor("#ab49df")Accessibility — WCAG contrast
Aa
#ab49df on white: 4.42:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ab49df on black: 4.75:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.1%
Green28.6%
Blue87.5%
CMYK percentages
Cyan23.3%
Magenta67.3%
Yellow0.0%
Key (black)12.5%
Color previews
#ab49df text on a black background
contrast 4.75:1
Card sample
#ab49df text on a white background
contrast 4.42:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ab49df;
Background color
Panel with #ab49df background
background-color: #ab49df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ab49df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(171, 73, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(171, 73, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ab49df; background: linear-gradient(135deg, #ab49df, #DF49AF);