#ac1afb
a balanced, electric violet · warm · closest name: magenta
RGB
172, 26, 251
HSL
279°, 97%, 54%
CMYK
32, 90, 0, 2
Luminance
0.1647
Every format
| HEX | #ac1afb |
| RGB | rgb(172, 26, 251) |
| HSL | hsl(279, 97%, 54%) |
| CMYK | cmyk(32%, 90%, 0%, 2%) |
| LAB | lab(47.6 83.6 -79.8) |
| LCH | lch(47.6 115.6 316.3) |
| OKLCH | oklch(0.587 0.288 308.0) |
Copy-ready code
/* CSS */
color: #ac1afb;
background-color: #ac1afb;
/* Tailwind (arbitrary) */
class="text-[#ac1afb] bg-[#ac1afb]"
/* SCSS */
$brand: #ac1afb;
/* SwiftUI */
Color(red: 0.675, green: 0.102, blue: 0.984)
/* Android */
Color.parseColor("#ac1afb")Accessibility — WCAG contrast
Aa
#ac1afb on white: 4.89:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#ac1afb on black: 4.29:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.5%
Green10.2%
Blue98.4%
CMYK percentages
Cyan31.5%
Magenta89.6%
Yellow0.0%
Key (black)1.6%
Color previews
#ac1afb text on a black background
contrast 4.29:1
Card sample
#ac1afb text on a white background
contrast 4.89:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ac1afb;
Background color
Panel with #ac1afb background
background-color: #ac1afb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ac1afb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(172, 26, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 26, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac1afb; background: linear-gradient(135deg, #ac1afb, #FB1AB4);