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