#ac8ffc
a light, electric violet · warm · closest name: slateblue
RGB
172, 143, 252
HSL
256°, 95%, 78%
CMYK
32, 43, 0, 1
Luminance
0.3544
Every format
| HEX | #ac8ffc |
| RGB | rgb(172, 143, 252) |
| HSL | hsl(256, 95%, 78%) |
| CMYK | cmyk(32%, 43%, 0%, 1%) |
| LAB | lab(66.1 34.1 -50.6) |
| LCH | lch(66.1 61.0 304.0) |
| OKLCH | oklch(0.721 0.156 294.4) |
Copy-ready code
/* CSS */
color: #ac8ffc;
background-color: #ac8ffc;
/* Tailwind (arbitrary) */
class="text-[#ac8ffc] bg-[#ac8ffc]"
/* SCSS */
$brand: #ac8ffc;
/* SwiftUI */
Color(red: 0.675, green: 0.561, blue: 0.988)
/* Android */
Color.parseColor("#ac8ffc")Accessibility — WCAG contrast
Aa
#ac8ffc on white: 2.60:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ac8ffc on black: 8.09:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.5%
Green56.1%
Blue98.8%
CMYK percentages
Cyan31.7%
Magenta43.3%
Yellow0.0%
Key (black)1.2%
Color previews
#ac8ffc text on a black background
contrast 8.09:1
Card sample
#ac8ffc text on a white background
contrast 2.60:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ac8ffc;
Background color
Panel with #ac8ffc background
background-color: #ac8ffc;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ac8ffc;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(172, 143, 252, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 143, 252, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac8ffc; background: linear-gradient(135deg, #ac8ffc, #F58FFC);