#ab4ce4
a balanced, vivid violet · warm · closest name: slateblue
RGB
171, 76, 228
HSL
278°, 74%, 60%
CMYK
25, 67, 0, 11
Luminance
0.1943
Every format
| HEX | #ab4ce4 |
| RGB | rgb(171, 76, 228) |
| HSL | hsl(278, 74%, 60%) |
| CMYK | cmyk(25%, 67%, 0%, 11%) |
| LAB | lab(51.2 63.2 -61.1) |
| LCH | lch(51.2 87.9 316.0) |
| OKLCH | oklch(0.607 0.225 310.0) |
Copy-ready code
/* CSS */
color: #ab4ce4;
background-color: #ab4ce4;
/* Tailwind (arbitrary) */
class="text-[#ab4ce4] bg-[#ab4ce4]"
/* SCSS */
$brand: #ab4ce4;
/* SwiftUI */
Color(red: 0.671, green: 0.298, blue: 0.894)
/* Android */
Color.parseColor("#ab4ce4")Accessibility — WCAG contrast
Aa
#ab4ce4 on white: 4.30:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ab4ce4 on black: 4.89:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.1%
Green29.8%
Blue89.4%
CMYK percentages
Cyan25.0%
Magenta66.7%
Yellow0.0%
Key (black)10.6%
Color previews
#ab4ce4 text on a black background
contrast 4.89:1
Card sample
#ab4ce4 text on a white background
contrast 4.30:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ab4ce4;
Background color
Panel with #ab4ce4 background
background-color: #ab4ce4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ab4ce4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(171, 76, 228, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(171, 76, 228, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ab4ce4; background: linear-gradient(135deg, #ab4ce4, #E44CB8);