#ac4df0
a balanced, electric violet · warm · closest name: slateblue
RGB
172, 77, 240
HSL
275°, 85%, 62%
CMYK
28, 68, 0, 6
Luminance
0.2037
Every format
| HEX | #ac4df0 |
| RGB | rgb(172, 77, 240) |
| HSL | hsl(275, 85%, 62%) |
| CMYK | cmyk(28%, 68%, 0%, 6%) |
| LAB | lab(52.3 65.5 -66.1) |
| LCH | lch(52.3 93.1 314.7) |
| OKLCH | oklch(0.617 0.236 307.5) |
Copy-ready code
/* CSS */
color: #ac4df0;
background-color: #ac4df0;
/* Tailwind (arbitrary) */
class="text-[#ac4df0] bg-[#ac4df0]"
/* SCSS */
$brand: #ac4df0;
/* SwiftUI */
Color(red: 0.675, green: 0.302, blue: 0.941)
/* Android */
Color.parseColor("#ac4df0")Accessibility — WCAG contrast
Aa
#ac4df0 on white: 4.14:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ac4df0 on black: 5.07:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.5%
Green30.2%
Blue94.1%
CMYK percentages
Cyan28.3%
Magenta67.9%
Yellow0.0%
Key (black)5.9%
Color previews
#ac4df0 text on a black background
contrast 5.07:1
Card sample
#ac4df0 text on a white background
contrast 4.14:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ac4df0;
Background color
Panel with #ac4df0 background
background-color: #ac4df0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ac4df0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(172, 77, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 77, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac4df0; background: linear-gradient(135deg, #ac4df0, #F04DC7);