#AB7EF4#AB7EF4
#AB7EF4 is a light, vivid violet. Relative luminance 0.301; OKLCH L 68.7% C 0.172 H 299.5°. Best body text is #000000 at 7.02:1 contrast (WCAG AA passes).
Color values
| HEX | #AB7EF4 |
|---|---|
| RGB | rgb(171, 126, 244) |
| HSL | hsl(263, 84%, 73%) |
| HSV | hsv(263, 48%, 96%) |
| CMYK | cmyk(29.9%, 48.4%, 0%, 4.3%) |
| CIE-LAB | lab(61.75, 41.37, -53.12) |
| CIE-LCH | lch(61.75, 67.33, 307.91°) |
| OKLab | oklab(68.72% 0.0845 -0.1494) |
| OKLCH | oklch(68.72% 0.172 299.5) |
| XYZ | xyz(40.5807, 30.1110, 89.2445) |
| Luminance | 0.3011 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 4.01
Light Purple
#BF77F6
ΔE00 4.18
Easter Purple
#C071FE
ΔE00 4.85
Liliac
#C48EFD
ΔE00 5.80
Mediumpurple
#9370DB
ΔE00 6.30
Periwinkle (survey)
#8E82FE
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB7EF4 #C7F47E
analogous
#7E8CF4 #AB7EF4 #E67EF4
triadic
#AB7EF4 #F4AB7E #7EF4AB
tetradic
#AB7EF4 #F47E8C #C7F47E #7EF4E6
square
#AB7EF4 #F47E8C #C7F47E #7EF4E6
split-complementary
#AB7EF4 #F4E67E #8CF47E
monochromatic
#6313E4 #8646EF #AB7EF4 #D0B6F9 #EDE3FD
Accessibility & contrast
On white
2.99
#AB7EF4 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.02
#AB7EF4 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AB7EF4
7.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB7EF4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB7EF4 | 1.00 | 2.99 | 7.02 | 7.02 |
| #FFFFFF | 2.99 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.02 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.02 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5795F8
Deuteranopia (green-blind)
#6294F1
Tritanopia (blue-blind)
#9C94AE
Achromatopsia (no color)
#959595
Design tokens & code
CSS
--color: #ab7ef4; /* rgb */ color: rgb(171, 126, 244); /* oklch */ color: oklch(68.7% 0.172 299.5);
Tailwind
colors: {
custom: {
50: '#c7a4f8',
500: '#ab7ef4',
950: '#000000',
},
}SCSS
$custom: #ab7ef4; $custom-light: #c7a4f8; $custom-dark: #000000;
JSON
{
"hex": "#ab7ef4",
"rgb": {
"r": 171,
"g": 126,
"b": 244
},
"hsl": {
"h": 262.881,
"s": 84.286,
"l": 72.549
},
"oklch": {
"l": 0.68724,
"c": 0.17166,
"h": 299.5
},
"luminance": 0.30111
}Semantic roles & 50–950 ramp
primary
#AB7EF4
secondary
#E9F5D6
accent
#E1058D
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85