#AB87E7#AB87E7
#AB87E7 is a light, vivid violet. Relative luminance 0.318; OKLCH L 69.6% C 0.141 H 300.0°. Best body text is #000000 at 7.35:1 contrast (WCAG AA passes).
Color values
| HEX | #AB87E7 |
|---|---|
| RGB | rgb(171, 135, 231) |
| HSL | hsl(263, 67%, 72%) |
| HSV | hsv(263, 42%, 91%) |
| CMYK | cmyk(26%, 41.6%, 0%, 9.4%) |
| CIE-LAB | lab(63.14, 33.20, -43.73) |
| CIE-LCH | lch(63.14, 54.90, 307.20°) |
| OKLab | oklab(69.56% 0.0706 -0.1221) |
| OKLCH | oklch(69.56% 0.141 300) |
| XYZ | xyz(39.8791, 31.7552, 79.6142) |
| Luminance | 0.3175 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 5.07
Light Purple
#BF77F6
ΔE00 5.99
Pale Purple
#B790D4
ΔE00 6.39
Light Urple
#B36FF6
ΔE00 6.87
Perrywinkle
#8F8CE7
ΔE00 6.95
Baby Purple
#CA9BF7
ΔE00 7.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB87E7 #C3E787
analogous
#8793E7 #AB87E7 #DB87E7
triadic
#AB87E7 #E7AB87 #87E7AB
tetradic
#AB87E7 #E78793 #C3E787 #87E7DB
square
#AB87E7 #E78793 #C3E787 #87E7DB
split-complementary
#AB87E7 #E7DB87 #93E787
monochromatic
#6629CB #8754DD #AB87E7 #CFBAF1 #EDE5FA
Accessibility & contrast
On white
2.86
#AB87E7 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.35
#AB87E7 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AB87E7
7.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB87E7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB87E7 | 1.00 | 2.86 | 7.35 | 7.35 |
| #FFFFFF | 2.86 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.35 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.35 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6D99EB
Deuteranopia (green-blind)
#7498E5
Tritanopia (blue-blind)
#A097AC
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #ab87e7; /* rgb */ color: rgb(171, 135, 231); /* oklch */ color: oklch(69.6% 0.141 300.0);
Tailwind
colors: {
custom: {
50: '#c6aaef',
500: '#ab87e7',
950: '#000000',
},
}SCSS
$custom: #ab87e7; $custom-light: #c6aaef; $custom-dark: #000000;
JSON
{
"hex": "#ab87e7",
"rgb": {
"r": 171,
"g": 135,
"b": 231
},
"hsl": {
"h": 262.5,
"s": 66.667,
"l": 71.765
},
"oklch": {
"l": 0.69558,
"c": 0.1411,
"h": 300
},
"luminance": 0.31755
}Semantic roles & 50–950 ramp
primary
#AB87E7
secondary
#E8F1D9
accent
#CF178A
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84