#AB7EFC#AB7EFC
#AB7EFC is a light, vivid violet. Relative luminance 0.306; OKLCH L 69.2% C 0.182 H 298.0°. Best body text is #000000 at 7.12:1 contrast (WCAG AA passes).
Color values
| HEX | #AB7EFC |
|---|---|
| RGB | rgb(171, 126, 252) |
| HSL | hsl(261, 95%, 74%) |
| HSV | hsv(261, 50%, 99%) |
| CMYK | cmyk(32.1%, 50%, 0%, 1.2%) |
| CIE-LAB | lab(62.17, 43.34, -56.85) |
| CIE-LCH | lch(62.17, 71.48, 307.32°) |
| OKLab | oklab(69.18% 0.0852 -0.1604) |
| OKLCH | oklch(69.18% 0.182 298) |
| XYZ | xyz(41.8218, 30.6074, 95.7810) |
| Luminance | 0.3061 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 4.19
Light Purple
#BF77F6
ΔE00 4.56
Easter Purple
#C071FE
ΔE00 4.88
Periwinkle (survey)
#8E82FE
ΔE00 5.96
Liliac
#C48EFD
ΔE00 6.01
Mediumpurple
#9370DB
ΔE00 6.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB7EFC #CFFC7E
analogous
#7E90FC #AB7EFC #EA7EFC
triadic
#AB7EFC #FCAB7E #7EFCAB
tetradic
#AB7EFC #FC7E90 #CFFC7E #7EFCEA
square
#AB7EFC #FC7E90 #CFFC7E #7EFCEA
split-complementary
#AB7EFC #FCEA7E #90FC7E
monochromatic
#5D06F9 #8442FB #AB7EFC #D2BAFD #ECE1FE
Accessibility & contrast
On white
2.95
#AB7EFC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.12
#AB7EFC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AB7EFC
7.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB7EFC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB7EFC | 1.00 | 2.95 | 7.12 | 7.12 |
| #FFFFFF | 2.95 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.12 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.12 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5197FF
Deuteranopia (green-blind)
#5C95F9
Tritanopia (blue-blind)
#9A96B1
Achromatopsia (no color)
#969696
Design tokens & code
CSS
--color: #ab7efc; /* rgb */ color: rgb(171, 126, 252); /* oklch */ color: oklch(69.2% 0.182 298.0);
Tailwind
colors: {
custom: {
50: '#c7a4fe',
500: '#ab7efc',
950: '#000000',
},
}SCSS
$custom: #ab7efc; $custom-light: #c7a4fe; $custom-dark: #000000;
JSON
{
"hex": "#ab7efc",
"rgb": {
"r": 171,
"g": 126,
"b": 252
},
"hsl": {
"h": 261.429,
"s": 95.455,
"l": 74.118
},
"oklch": {
"l": 0.69178,
"c": 0.18158,
"h": 298
},
"luminance": 0.30608
}Semantic roles & 50–950 ramp
primary
#AB7EFC
secondary
#EAF7D4
accent
#E60094
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F18
muted
#827F86