#ac4afd
a balanced, electric violet · warm · closest name: magenta
RGB
172, 74, 253
HSL
273°, 98%, 64%
CMYK
32, 71, 0, 1
Luminance
0.2076
Every format
| HEX | #ac4afd |
| RGB | rgb(172, 74, 253) |
| HSL | hsl(273, 98%, 64%) |
| CMYK | cmyk(32%, 71%, 0%, 1%) |
| LAB | lab(52.7 69.6 -72.7) |
| LCH | lch(52.7 100.6 313.8) |
| OKLCH | oklch(0.623 0.252 305.1) |
Copy-ready code
/* CSS */
color: #ac4afd;
background-color: #ac4afd;
/* Tailwind (arbitrary) */
class="text-[#ac4afd] bg-[#ac4afd]"
/* SCSS */
$brand: #ac4afd;
/* SwiftUI */
Color(red: 0.675, green: 0.290, blue: 0.992)
/* Android */
Color.parseColor("#ac4afd")Accessibility — WCAG contrast
Aa
#ac4afd on white: 4.08:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ac4afd on black: 5.15:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.5%
Green29.0%
Blue99.2%
CMYK percentages
Cyan32.0%
Magenta70.8%
Yellow0.0%
Key (black)0.8%
Color previews
#ac4afd text on a black background
contrast 5.15:1
Card sample
#ac4afd text on a white background
contrast 4.08:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ac4afd;
Background color
Panel with #ac4afd background
background-color: #ac4afd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ac4afd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(172, 74, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 74, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac4afd; background: linear-gradient(135deg, #ac4afd, #FD4AD7);