#AB7AFE#AB7AFE
#AB7AFE is a light, vivid violet. Relative luminance 0.297; OKLCH L 68.7% C 0.190 H 298.4°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).
Color values
| HEX | #AB7AFE |
|---|---|
| RGB | rgb(171, 122, 254) |
| HSL | hsl(262, 99%, 74%) |
| HSV | hsv(262, 52%, 100%) |
| CMYK | cmyk(32.7%, 52%, 0%, 0.4%) |
| CIE-LAB | lab(61.42, 46.03, -59.15) |
| CIE-LCH | lch(61.42, 74.95, 307.89°) |
| OKLab | oklab(68.66% 0.0903 -0.1671) |
| OKLCH | oklch(68.66% 0.19 298.4) |
| XYZ | xyz(41.6392, 29.7323, 97.2919) |
| Luminance | 0.2973 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.44
Easter Purple
#C071FE
ΔE00 4.34
Light Purple
#BF77F6
ΔE00 4.37
Periwinkle (survey)
#8E82FE
ΔE00 6.25
Mediumpurple
#9370DB
ΔE00 6.60
Liliac
#C48EFD
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB7AFE #CDFE7A
analogous
#7A8BFE #AB7AFE #ED7AFE
triadic
#AB7AFE #FEAB7A #7AFEAB
tetradic
#AB7AFE #FE7A8B #CDFE7A #7AFEED
square
#AB7AFE #FE7A8B #CDFE7A #7AFEED
split-complementary
#AB7AFE #FEED7A #8BFE7A
monochromatic
#5F02FC #853DFE #AB7AFE #D1B7FE #ECE1FF
Accessibility & contrast
On white
3.02
#AB7AFE on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.95
#AB7AFE on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AB7AFE
6.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB7AFE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB7AFE | 1.00 | 3.02 | 6.95 | 6.95 |
| #FFFFFF | 3.02 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.95 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.95 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4794FF
Deuteranopia (green-blind)
#5593FB
Tritanopia (blue-blind)
#9994B1
Achromatopsia (no color)
#949494
Design tokens & code
CSS
--color: #ab7afe; /* rgb */ color: rgb(171, 122, 254); /* oklch */ color: oklch(68.7% 0.190 298.4);
Tailwind
colors: {
custom: {
50: '#c8a2ff',
500: '#ab7afe',
950: '#000000',
},
}SCSS
$custom: #ab7afe; $custom-light: #c8a2ff; $custom-dark: #000000;
JSON
{
"hex": "#ab7afe",
"rgb": {
"r": 171,
"g": 122,
"b": 254
},
"hsl": {
"h": 262.273,
"s": 98.507,
"l": 73.725
},
"oklch": {
"l": 0.68655,
"c": 0.18995,
"h": 298.4
},
"luminance": 0.29733
}Semantic roles & 50–950 ramp
primary
#AB7AFE
secondary
#EAF7D4
accent
#E60090
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#130F18
muted
#827F86