#AB87E1#AB87E1
#AB87E1 is a light, vivid violet. Relative luminance 0.314; OKLCH L 69.3% C 0.133 H 301.4°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).
Color values
| HEX | #AB87E1 |
|---|---|
| RGB | rgb(171, 135, 225) |
| HSL | hsl(264, 60%, 71%) |
| HSV | hsv(264, 40%, 88%) |
| CMYK | cmyk(24%, 40%, 0%, 11.8%) |
| CIE-LAB | lab(62.86, 31.77, -40.84) |
| CIE-LCH | lch(62.86, 51.74, 307.88°) |
| OKLab | oklab(69.26% 0.0696 -0.1138) |
| OKLCH | oklch(69.26% 0.133 301.4) |
| XYZ | xyz(39.0462, 31.4220, 75.2276) |
| Luminance | 0.3142 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Pale Purple
#B790D4
ΔE00 5.47
Liliac
#C48EFD
ΔE00 5.53
Wisteria
#A87DC2
ΔE00 6.24
Light Purple
#BF77F6
ΔE00 6.39
Baby Purple
#CA9BF7
ΔE00 7.10
Lavender
#B39DDB
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB87E1 #BDE187
analogous
#8790E1 #AB87E1 #D887E1
triadic
#AB87E1 #E1AB87 #87E1AB
tetradic
#AB87E1 #E18790 #BDE187 #87E1D8
square
#AB87E1 #E18790 #BDE187 #87E1D8
split-complementary
#AB87E1 #E1D887 #90E187
monochromatic
#6930BE #8956D5 #AB87E1 #CDB8ED #EEE7F9
Accessibility & contrast
On white
2.88
#AB87E1 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.28
#AB87E1 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AB87E1
7.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB87E1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB87E1 | 1.00 | 2.88 | 7.28 | 7.28 |
| #FFFFFF | 2.88 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.28 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.28 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7098E4
Deuteranopia (green-blind)
#7898DF
Tritanopia (blue-blind)
#A196A9
Achromatopsia (no color)
#989898
Design tokens & code
CSS
--color: #ab87e1; /* rgb */ color: rgb(171, 135, 225); /* oklch */ color: oklch(69.3% 0.133 301.4);
Tailwind
colors: {
custom: {
50: '#c5aaeb',
500: '#ab87e1',
950: '#000000',
},
}SCSS
$custom: #ab87e1; $custom-light: #c5aaeb; $custom-dark: #000000;
JSON
{
"hex": "#ab87e1",
"rgb": {
"r": 171,
"g": 135,
"b": 225
},
"hsl": {
"h": 264,
"s": 60,
"l": 70.588
},
"oklch": {
"l": 0.69257,
"c": 0.13334,
"h": 301.4
},
"luminance": 0.31422
}Semantic roles & 50–950 ramp
primary
#AB87E1
secondary
#E4EED6
accent
#C81E84
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84