#ac64f8
a light, electric violet · warm · closest name: slateblue
RGB
172, 100, 248
HSL
269°, 91%, 68%
CMYK
31, 60, 0, 3
Luminance
0.2466
Every format
| HEX | #ac64f8 |
| RGB | rgb(172, 100, 248) |
| HSL | hsl(269, 91%, 68%) |
| CMYK | cmyk(31%, 60%, 0%, 3%) |
| LAB | lab(56.7 56.4 -63.3) |
| LCH | lch(56.7 84.8 311.7) |
| OKLCH | oklch(0.651 0.215 303.4) |
Copy-ready code
/* CSS */
color: #ac64f8;
background-color: #ac64f8;
/* Tailwind (arbitrary) */
class="text-[#ac64f8] bg-[#ac64f8]"
/* SCSS */
$brand: #ac64f8;
/* SwiftUI */
Color(red: 0.675, green: 0.392, blue: 0.973)
/* Android */
Color.parseColor("#ac64f8")Accessibility — WCAG contrast
Aa
#ac64f8 on white: 3.54:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ac64f8 on black: 5.93:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.5%
Green39.2%
Blue97.3%
CMYK percentages
Cyan30.6%
Magenta59.7%
Yellow0.0%
Key (black)2.7%
Color previews
#ac64f8 text on a black background
contrast 5.93:1
Card sample
#ac64f8 text on a white background
contrast 3.54:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ac64f8;
Background color
Panel with #ac64f8 background
background-color: #ac64f8;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ac64f8;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(172, 100, 248, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 100, 248, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac64f8; background: linear-gradient(135deg, #ac64f8, #F864E1);