#AB56D3#AB56D3
#AB56D3 is a mid, vivid purple. Relative luminance 0.200; OKLCH L 60.8% C 0.195 H 313.5°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).
Color values
| HEX | #AB56D3 |
|---|---|
| RGB | rgb(171, 86, 211) |
| HSL | hsl(281, 59%, 58%) |
| HSV | hsv(281, 59%, 83%) |
| CMYK | cmyk(19%, 59.2%, 0%, 17.3%) |
| CIE-LAB | lab(51.86, 54.91, -50.36) |
| CIE-LCH | lch(51.86, 74.51, 317.47°) |
| OKLab | oklab(60.84% 0.134 -0.1413) |
| OKLCH | oklch(60.84% 0.195 313.5) |
| XYZ | xyz(31.8782, 20.0175, 63.7999) |
| Luminance | 0.2002 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 2.94
Lightish Purple
#A552E6
ΔE00 3.53
Amethyst
#9B5FC0
ΔE00 4.19
Lighter Purple
#A55AF4
ΔE00 5.48
Deep Lavender
#8D5EB7
ΔE00 6.82
Pinkish Purple
#D648D7
ΔE00 7.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB56D3 #7ED356
analogous
#6C56D3 #AB56D3 #D356BC
triadic
#AB56D3 #D3AB56 #56D3AB
tetradic
#AB56D3 #D36C56 #7ED356 #56BCD3
square
#AB56D3 #D36C56 #7ED356 #56BCD3
split-complementary
#AB56D3 #BCD356 #56D36C
monochromatic
#6A248B #8F31BB #AB56D3 #C387E0 #DBB7EC
Accessibility & contrast
On white
4.20
#AB56D3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.00
#AB56D3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AB56D3
5.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB56D3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB56D3 | 1.00 | 4.20 | 5.00 | 5.00 |
| #FFFFFF | 4.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.00 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.00 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D77D7
Deuteranopia (green-blind)
#507ED0
Tritanopia (blue-blind)
#A76C8C
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #ab56d3; /* rgb */ color: rgb(171, 86, 211); /* oklch */ color: oklch(60.8% 0.195 313.5);
Tailwind
colors: {
custom: {
50: '#c78ae1',
500: '#ab56d3',
950: '#000000',
},
}SCSS
$custom: #ab56d3; $custom-light: #c78ae1; $custom-dark: #000000;
JSON
{
"hex": "#ab56d3",
"rgb": {
"r": 171,
"g": 86,
"b": 211
},
"hsl": {
"h": 280.8,
"s": 58.685,
"l": 58.235
},
"oklch": {
"l": 0.60844,
"c": 0.19469,
"h": 313.5
},
"luminance": 0.20017
}Semantic roles & 50–950 ramp
primary
#AB56D3
secondary
#B9DBAA
accent
#E24678
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83