#AB8FF2#AB8FF2
#AB8FF2 is a light, vivid violet. Relative luminance 0.347; OKLCH L 71.5% C 0.143 H 295.6°. Best body text is #000000 at 7.94:1 contrast (WCAG AA passes).
Color values
| HEX | #AB8FF2 |
|---|---|
| RGB | rgb(171, 143, 242) |
| HSL | hsl(257, 79%, 75%) |
| HSV | hsv(257, 41%, 95%) |
| CMYK | cmyk(29.3%, 40.9%, 0%, 5.1%) |
| CIE-LAB | lab(65.52, 31.36, -46.05) |
| CIE-LCH | lch(65.52, 55.71, 304.26°) |
| OKLab | oklab(71.53% 0.0617 -0.1289) |
| OKLCH | oklch(71.53% 0.143 295.6) |
| XYZ | xyz(42.6402, 34.7131, 88.4410) |
| Luminance | 0.3471 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 4.95
Perrywinkle
#8F8CE7
ΔE00 5.81
Baby Purple
#CA9BF7
ΔE00 6.54
Pastel Purple
#CAA0FF
ΔE00 6.58
Lavender Blue
#8B88F8
ΔE00 6.89
Periwinkle (survey)
#8E82FE
ΔE00 6.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB8FF2 #D6F28F
analogous
#8FA4F2 #AB8FF2 #DD8FF2
triadic
#AB8FF2 #F2AB8F #8FF2AB
tetradic
#AB8FF2 #F28FA4 #D6F28F #8FF2DD
square
#AB8FF2 #F28FA4 #D6F28F #8FF2DD
split-complementary
#AB8FF2 #F2DD8F #A4F28F
monochromatic
#5921E5 #8258EC #AB8FF2 #D4C6F8 #EAE4FC
Accessibility & contrast
On white
2.64
#AB8FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.94
#AB8FF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AB8FF2
7.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB8FF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB8FF2 | 1.00 | 2.64 | 7.94 | 7.94 |
| #FFFFFF | 2.64 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.94 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.94 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#72A0F6
Deuteranopia (green-blind)
#779EF0
Tritanopia (blue-blind)
#9CA1B5
Achromatopsia (no color)
#9F9F9F
Design tokens & code
CSS
--color: #ab8ff2; /* rgb */ color: rgb(171, 143, 242); /* oklch */ color: oklch(71.5% 0.143 295.6);
Tailwind
colors: {
custom: {
50: '#c6b0f7',
500: '#ab8ff2',
950: '#000000',
},
}SCSS
$custom: #ab8ff2; $custom-light: #c6b0f7; $custom-dark: #000000;
JSON
{
"hex": "#ab8ff2",
"rgb": {
"r": 171,
"g": 143,
"b": 242
},
"hsl": {
"h": 256.97,
"s": 79.2,
"l": 75.49
},
"oklch": {
"l": 0.7153,
"c": 0.14288,
"h": 295.6
},
"luminance": 0.34714
}Semantic roles & 50–950 ramp
primary
#AB8FF2
secondary
#ECF4D7
accent
#DB0AA0
background
#FCFAFF
surface
#F8F4FE
border
#D1CED6
text
#131017
muted
#827F85