#ac56df
a balanced, vivid violet · warm · closest name: slateblue
RGB
172, 86, 223
HSL
278°, 68%, 61%
CMYK
23, 61, 0, 13
Luminance
0.2075
Every format
| HEX | #ac56df |
| RGB | rgb(172, 86, 223) |
| HSL | hsl(278, 68%, 61%) |
| CMYK | cmyk(23%, 61%, 0%, 13%) |
| LAB | lab(52.7 57.7 -55.9) |
| LCH | lch(52.7 80.3 315.9) |
| OKLCH | oklch(0.617 0.207 310.7) |
Copy-ready code
/* CSS */
color: #ac56df;
background-color: #ac56df;
/* Tailwind (arbitrary) */
class="text-[#ac56df] bg-[#ac56df]"
/* SCSS */
$brand: #ac56df;
/* SwiftUI */
Color(red: 0.675, green: 0.337, blue: 0.875)
/* Android */
Color.parseColor("#ac56df")Accessibility — WCAG contrast
Aa
#ac56df on white: 4.08:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ac56df on black: 5.15:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.5%
Green33.7%
Blue87.5%
CMYK percentages
Cyan22.9%
Magenta61.4%
Yellow0.0%
Key (black)12.5%
Color previews
#ac56df text on a black background
contrast 5.15:1
Card sample
#ac56df text on a white background
contrast 4.08:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ac56df;
Background color
Panel with #ac56df background
background-color: #ac56df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ac56df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(172, 86, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 86, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac56df; background: linear-gradient(135deg, #ac56df, #DF56B7);