#ac47df
a balanced, vivid violet · warm · closest name: slateblue
RGB
172, 71, 223
HSL
280°, 70%, 58%
CMYK
23, 68, 0, 13
Luminance
0.1860
Every format
| HEX | #ac47df |
| RGB | rgb(172, 71, 223) |
| HSL | hsl(280, 70%, 58%) |
| CMYK | cmyk(23%, 68%, 0%, 13%) |
| LAB | lab(50.2 64.5 -59.8) |
| LCH | lch(50.2 88.0 317.2) |
| OKLCH | oklch(0.599 0.227 312.0) |
Copy-ready code
/* CSS */
color: #ac47df;
background-color: #ac47df;
/* Tailwind (arbitrary) */
class="text-[#ac47df] bg-[#ac47df]"
/* SCSS */
$brand: #ac47df;
/* SwiftUI */
Color(red: 0.675, green: 0.278, blue: 0.875)
/* Android */
Color.parseColor("#ac47df")Accessibility — WCAG contrast
Aa
#ac47df on white: 4.45:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ac47df on black: 4.72:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.5%
Green27.8%
Blue87.5%
CMYK percentages
Cyan22.9%
Magenta68.2%
Yellow0.0%
Key (black)12.5%
Color previews
#ac47df text on a black background
contrast 4.72:1
Card sample
#ac47df text on a white background
contrast 4.45:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ac47df;
Background color
Panel with #ac47df background
background-color: #ac47df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ac47df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(172, 71, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 71, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac47df; background: linear-gradient(135deg, #ac47df, #DF47AD);