#ab3af0
a balanced, electric violet · warm · closest name: magenta
RGB
171, 58, 240
HSL
277°, 86%, 58%
CMYK
29, 76, 0, 6
Luminance
0.1798
Every format
| HEX | #ab3af0 |
| RGB | rgb(171, 58, 240) |
| HSL | hsl(277, 86%, 58%) |
| CMYK | cmyk(29%, 76%, 0%, 6%) |
| LAB | lab(49.5 72.9 -70.6) |
| LCH | lch(49.5 101.5 315.9) |
| OKLCH | oklch(0.597 0.257 308.6) |
Copy-ready code
/* CSS */
color: #ab3af0;
background-color: #ab3af0;
/* Tailwind (arbitrary) */
class="text-[#ab3af0] bg-[#ab3af0]"
/* SCSS */
$brand: #ab3af0;
/* SwiftUI */
Color(red: 0.671, green: 0.227, blue: 0.941)
/* Android */
Color.parseColor("#ab3af0")Accessibility — WCAG contrast
Aa
#ab3af0 on white: 4.57:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ab3af0 on black: 4.60:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.1%
Green22.7%
Blue94.1%
CMYK percentages
Cyan28.8%
Magenta75.8%
Yellow0.0%
Key (black)5.9%
Color previews
#ab3af0 text on a black background
contrast 4.60:1
Card sample
#ab3af0 text on a white background
contrast 4.57:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ab3af0;
Background color
Panel with #ab3af0 background
background-color: #ab3af0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ab3af0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(171, 58, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(171, 58, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ab3af0; background: linear-gradient(135deg, #ab3af0, #F03ABB);