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