#ac64f0
a light, electric violet · warm · closest name: slateblue
RGB
172, 100, 240
HSL
271°, 82%, 67%
CMYK
28, 58, 0, 6
Luminance
0.2418
Every format
| HEX | #ac64f0 |
| RGB | rgb(172, 100, 240) |
| HSL | hsl(271, 82%, 67%) |
| CMYK | cmyk(28%, 58%, 0%, 6%) |
| LAB | lab(56.3 54.6 -59.6) |
| LCH | lch(56.3 80.8 312.5) |
| OKLCH | oklch(0.646 0.206 305.0) |
Copy-ready code
/* CSS */
color: #ac64f0;
background-color: #ac64f0;
/* Tailwind (arbitrary) */
class="text-[#ac64f0] bg-[#ac64f0]"
/* SCSS */
$brand: #ac64f0;
/* SwiftUI */
Color(red: 0.675, green: 0.392, blue: 0.941)
/* Android */
Color.parseColor("#ac64f0")Accessibility — WCAG contrast
Aa
#ac64f0 on white: 3.60:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ac64f0 on black: 5.84:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.5%
Green39.2%
Blue94.1%
CMYK percentages
Cyan28.3%
Magenta58.3%
Yellow0.0%
Key (black)5.9%
Color previews
#ac64f0 text on a black background
contrast 5.84:1
Card sample
#ac64f0 text on a white background
contrast 3.60:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ac64f0;
Background color
Panel with #ac64f0 background
background-color: #ac64f0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ac64f0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(172, 100, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 100, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac64f0; background: linear-gradient(135deg, #ac64f0, #F064D7);