#ab1cdf
a balanced, electric violet · warm · closest name: magenta
RGB
171, 28, 223
HSL
284°, 78%, 49%
CMYK
23, 87, 0, 13
Luminance
0.1482
Every format
| HEX | #ab1cdf |
| RGB | rgb(171, 28, 223) |
| HSL | hsl(284, 78%, 49%) |
| CMYK | cmyk(23%, 87%, 0%, 13%) |
| LAB | lab(45.4 77.8 -67.6) |
| LCH | lch(45.4 103.1 319.0) |
| OKLCH | oklch(0.565 0.266 313.8) |
Copy-ready code
/* CSS */
color: #ab1cdf;
background-color: #ab1cdf;
/* Tailwind (arbitrary) */
class="text-[#ab1cdf] bg-[#ab1cdf]"
/* SCSS */
$brand: #ab1cdf;
/* SwiftUI */
Color(red: 0.671, green: 0.110, blue: 0.875)
/* Android */
Color.parseColor("#ab1cdf")Accessibility — WCAG contrast
Aa
#ab1cdf on white: 5.30:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ab1cdf on black: 3.96:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.1%
Green11.0%
Blue87.5%
CMYK percentages
Cyan23.3%
Magenta87.4%
Yellow0.0%
Key (black)12.5%
Color previews
#ab1cdf text on a black background
contrast 3.96:1
Card sample
#ab1cdf text on a white background
contrast 5.30:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ab1cdf;
Background color
Panel with #ab1cdf background
background-color: #ab1cdf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ab1cdf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(171, 28, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(171, 28, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ab1cdf; background: linear-gradient(135deg, #ab1cdf, #DF1C91);