#AB51BF#AB51BF
#AB51BF is a mid, vivid purple. Relative luminance 0.183; OKLCH L 59.0% C 0.182 H 320.0°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).
Color values
| HEX | #AB51BF |
|---|---|
| RGB | rgb(171, 81, 191) |
| HSL | hsl(289, 46%, 53%) |
| HSV | hsv(289, 58%, 75%) |
| CMYK | cmyk(10.5%, 57.6%, 0%, 25.1%) |
| CIE-LAB | lab(49.86, 53.25, -42.04) |
| CIE-LCH | lch(49.86, 67.85, 321.71°) |
| OKLab | oklab(59.04% 0.1395 -0.117) |
| OKLCH | oklch(59.04% 0.182 320) |
| XYZ | xyz(29.1398, 18.3056, 51.2785) |
| Luminance | 0.1830 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 4.19
Amethyst
#9B5FC0
ΔE00 4.33
Purpley Pink
#C83CB9
ΔE00 5.88
Pinky Purple
#C94CBE
ΔE00 5.94
Purply
#983FB2
ΔE00 6.32
Medium Purple
#9E43A2
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB51BF #65BF51
analogous
#7451BF #AB51BF #BF519C
triadic
#AB51BF #BFAB51 #51BFAB
tetradic
#AB51BF #BF7451 #65BF51 #519CBF
square
#AB51BF #BF7451 #65BF51 #519CBF
split-complementary
#AB51BF #9CBF51 #51BF74
monochromatic
#61286D #88399A #AB51BF #C17ECF #D6AAE0
Accessibility & contrast
On white
4.51
#AB51BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.66
#AB51BF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AB51BF
4.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB51BF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB51BF | 1.00 | 4.51 | 4.66 | 4.66 |
| #FFFFFF | 4.51 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.66 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.66 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3A70C2
Deuteranopia (green-blind)
#5A7ABC
Tritanopia (blue-blind)
#AC6280
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #ab51bf; /* rgb */ color: rgb(171, 81, 191); /* oklch */ color: oklch(59.0% 0.182 320.0);
Tailwind
colors: {
custom: {
50: '#c786d3',
500: '#ab51bf',
950: '#000000',
},
}SCSS
$custom: #ab51bf; $custom-light: #c786d3; $custom-dark: #000000;
JSON
{
"hex": "#ab51bf",
"rgb": {
"r": 171,
"g": 81,
"b": 191
},
"hsl": {
"h": 289.091,
"s": 46.218,
"l": 53.333
},
"oklch": {
"l": 0.59036,
"c": 0.18209,
"h": 320
},
"luminance": 0.18304
}Semantic roles & 50–950 ramp
primary
#AB51BF
secondary
#A7CE9E
accent
#D6526A
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130B14
muted
#827C83