#ac3afd
a balanced, electric violet · warm · closest name: magenta
RGB
172, 58, 253
HSL
275°, 98%, 61%
CMYK
32, 77, 0, 1
Luminance
0.1889
Every format
| HEX | #ac3afd |
| RGB | rgb(172, 58, 253) |
| HSL | hsl(275, 98%, 61%) |
| CMYK | cmyk(32%, 77%, 0%, 1%) |
| LAB | lab(50.6 75.7 -76.1) |
| LCH | lch(50.6 107.4 314.8) |
| OKLCH | oklch(0.608 0.269 306.2) |
Copy-ready code
/* CSS */
color: #ac3afd;
background-color: #ac3afd;
/* Tailwind (arbitrary) */
class="text-[#ac3afd] bg-[#ac3afd]"
/* SCSS */
$brand: #ac3afd;
/* SwiftUI */
Color(red: 0.675, green: 0.227, blue: 0.992)
/* Android */
Color.parseColor("#ac3afd")Accessibility — WCAG contrast
Aa
#ac3afd on white: 4.40:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ac3afd on black: 4.78:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.5%
Green22.7%
Blue99.2%
CMYK percentages
Cyan32.0%
Magenta77.1%
Yellow0.0%
Key (black)0.8%
Color previews
#ac3afd text on a black background
contrast 4.78:1
Card sample
#ac3afd text on a white background
contrast 4.40:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ac3afd;
Background color
Panel with #ac3afd background
background-color: #ac3afd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ac3afd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(172, 58, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 58, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac3afd; background: linear-gradient(135deg, #ac3afd, #FD3ACC);