#ab2def
a balanced, electric violet · warm · closest name: magenta
RGB
171, 45, 239
HSL
279°, 86%, 56%
CMYK
29, 81, 0, 6
Luminance
0.1677
Every format
| HEX | #ab2def |
| RGB | rgb(171, 45, 239) |
| HSL | hsl(279, 86%, 56%) |
| CMYK | cmyk(29%, 81%, 0%, 6%) |
| LAB | lab(48.0 76.8 -72.5) |
| LCH | lch(48.0 105.6 316.6) |
| OKLCH | oklch(0.587 0.267 309.5) |
Copy-ready code
/* CSS */
color: #ab2def;
background-color: #ab2def;
/* Tailwind (arbitrary) */
class="text-[#ab2def] bg-[#ab2def]"
/* SCSS */
$brand: #ab2def;
/* SwiftUI */
Color(red: 0.671, green: 0.176, blue: 0.937)
/* Android */
Color.parseColor("#ab2def")Accessibility — WCAG contrast
Aa
#ab2def on white: 4.82:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ab2def on black: 4.35:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.1%
Green17.6%
Blue93.7%
CMYK percentages
Cyan28.5%
Magenta81.2%
Yellow0.0%
Key (black)6.3%
Color previews
#ab2def text on a black background
contrast 4.35:1
Card sample
#ab2def text on a white background
contrast 4.82:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ab2def;
Background color
Panel with #ab2def background
background-color: #ab2def;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ab2def;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(171, 45, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(171, 45, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ab2def; background: linear-gradient(135deg, #ab2def, #EF2DB2);