#ac4afb
a balanced, electric violet · warm · closest name: magenta
RGB
172, 74, 251
HSL
273°, 96%, 64%
CMYK
32, 71, 0, 2
Luminance
0.2063
Every format
| HEX | #ac4afb |
| RGB | rgb(172, 74, 251) |
| HSL | hsl(273, 96%, 64%) |
| CMYK | cmyk(32%, 71%, 0%, 2%) |
| LAB | lab(52.5 69.2 -71.8) |
| LCH | lch(52.5 99.7 314.0) |
| OKLCH | oklch(0.622 0.251 305.5) |
Copy-ready code
/* CSS */
color: #ac4afb;
background-color: #ac4afb;
/* Tailwind (arbitrary) */
class="text-[#ac4afb] bg-[#ac4afb]"
/* SCSS */
$brand: #ac4afb;
/* SwiftUI */
Color(red: 0.675, green: 0.290, blue: 0.984)
/* Android */
Color.parseColor("#ac4afb")Accessibility — WCAG contrast
Aa
#ac4afb on white: 4.10:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ac4afb on black: 5.13:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.5%
Green29.0%
Blue98.4%
CMYK percentages
Cyan31.5%
Magenta70.5%
Yellow0.0%
Key (black)1.6%
Color previews
#ac4afb text on a black background
contrast 5.13:1
Card sample
#ac4afb text on a white background
contrast 4.10:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ac4afb;
Background color
Panel with #ac4afb background
background-color: #ac4afb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ac4afb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(172, 74, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 74, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac4afb; background: linear-gradient(135deg, #ac4afb, #FB4AD4);