#AB7EF6#AB7EF6
#AB7EF6 is a light, vivid violet. Relative luminance 0.302; OKLCH L 68.8% C 0.174 H 299.1°. Best body text is #000000 at 7.05:1 contrast (WCAG AA passes).
Color values
| HEX | #AB7EF6 |
|---|---|
| RGB | rgb(171, 126, 246) |
| HSL | hsl(263, 87%, 73%) |
| HSV | hsv(263, 49%, 96%) |
| CMYK | cmyk(30.5%, 48.8%, 0%, 3.5%) |
| CIE-LAB | lab(61.85, 41.86, -54.06) |
| CIE-LCH | lch(61.85, 68.37, 307.75°) |
| OKLab | oklab(68.84% 0.0847 -0.1522) |
| OKLCH | oklch(68.84% 0.174 299.1) |
| XYZ | xyz(40.8860, 30.2331, 90.8524) |
| Luminance | 0.3023 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 4.02
Light Purple
#BF77F6
ΔE00 4.25
Easter Purple
#C071FE
ΔE00 4.83
Liliac
#C48EFD
ΔE00 5.83
Periwinkle (survey)
#8E82FE
ΔE00 6.34
Mediumpurple
#9370DB
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB7EF6 #C9F67E
analogous
#7E8DF6 #AB7EF6 #E77EF6
triadic
#AB7EF6 #F6AB7E #7EF6AB
tetradic
#AB7EF6 #F67E8D #C9F67E #7EF6E7
square
#AB7EF6 #F67E8D #C9F67E #7EF6E7
split-complementary
#AB7EF6 #F6E77E #8DF67E
monochromatic
#6210E9 #8645F2 #AB7EF6 #D0B7FA #ECE2FD
Accessibility & contrast
On white
2.98
#AB7EF6 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.05
#AB7EF6 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AB7EF6
7.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB7EF6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB7EF6 | 1.00 | 2.98 | 7.05 | 7.05 |
| #FFFFFF | 2.98 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.05 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.05 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5695FA
Deuteranopia (green-blind)
#6194F3
Tritanopia (blue-blind)
#9C94AF
Achromatopsia (no color)
#959595
Design tokens & code
CSS
--color: #ab7ef6; /* rgb */ color: rgb(171, 126, 246); /* oklch */ color: oklch(68.8% 0.174 299.1);
Tailwind
colors: {
custom: {
50: '#c7a4fa',
500: '#ab7ef6',
950: '#000000',
},
}SCSS
$custom: #ab7ef6; $custom-light: #c7a4fa; $custom-dark: #000000;
JSON
{
"hex": "#ab7ef6",
"rgb": {
"r": 171,
"g": 126,
"b": 246
},
"hsl": {
"h": 262.5,
"s": 86.957,
"l": 72.941
},
"oklch": {
"l": 0.68836,
"c": 0.17415,
"h": 299.1
},
"luminance": 0.30233
}Semantic roles & 50–950 ramp
primary
#AB7EF6
secondary
#E9F5D6
accent
#E4028F
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85