#ab2fee
a balanced, electric violet · warm · closest name: magenta
RGB
171, 47, 238
HSL
279°, 85%, 56%
CMYK
28, 80, 0, 7
Luminance
0.1686
Every format
| HEX | #ab2fee |
| RGB | rgb(171, 47, 238) |
| HSL | hsl(279, 85%, 56%) |
| CMYK | cmyk(28%, 80%, 0%, 7%) |
| LAB | lab(48.1 76.0 -71.7) |
| LCH | lch(48.1 104.5 316.7) |
| OKLCH | oklch(0.587 0.265 309.7) |
Copy-ready code
/* CSS */
color: #ab2fee;
background-color: #ab2fee;
/* Tailwind (arbitrary) */
class="text-[#ab2fee] bg-[#ab2fee]"
/* SCSS */
$brand: #ab2fee;
/* SwiftUI */
Color(red: 0.671, green: 0.184, blue: 0.933)
/* Android */
Color.parseColor("#ab2fee")Accessibility — WCAG contrast
Aa
#ab2fee on white: 4.80:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ab2fee on black: 4.37:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.1%
Green18.4%
Blue93.3%
CMYK percentages
Cyan28.2%
Magenta80.3%
Yellow0.0%
Key (black)6.7%
Color previews
#ab2fee text on a black background
contrast 4.37:1
Card sample
#ab2fee text on a white background
contrast 4.80:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ab2fee;
Background color
Panel with #ab2fee background
background-color: #ab2fee;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ab2fee;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(171, 47, 238, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(171, 47, 238, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ab2fee; background: linear-gradient(135deg, #ab2fee, #EE2FB2);