#AB7FF2#AB7FF2
#AB7FF2 is a light, vivid violet. Relative luminance 0.302; OKLCH L 68.8% C 0.168 H 299.7°. Best body text is #000000 at 7.05:1 contrast (WCAG AA passes).
Color values
| HEX | #AB7FF2 |
|---|---|
| RGB | rgb(171, 127, 242) |
| HSL | hsl(263, 82%, 72%) |
| HSV | hsv(263, 48%, 95%) |
| CMYK | cmyk(29.3%, 47.5%, 0%, 5.1%) |
| CIE-LAB | lab(61.87, 40.33, -51.83) |
| CIE-LCH | lch(61.87, 65.67, 307.89°) |
| OKLab | oklab(68.78% 0.0829 -0.1457) |
| OKLCH | oklch(68.78% 0.168 299.7) |
| XYZ | xyz(40.4072, 30.2472, 87.6967) |
| Luminance | 0.3025 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 4.27
Light Urple
#B36FF6
ΔE00 4.28
Easter Purple
#C071FE
ΔE00 5.07
Liliac
#C48EFD
ΔE00 5.63
Mediumpurple
#9370DB
ΔE00 6.33
Periwinkle (survey)
#8E82FE
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB7FF2 #C6F27F
analogous
#7F8CF2 #AB7FF2 #E57FF2
triadic
#AB7FF2 #F2AB7F #7FF2AB
tetradic
#AB7FF2 #F27F8C #C6F27F #7FF2E5
square
#AB7FF2 #F27F8C #C6F27F #7FF2E5
split-complementary
#AB7FF2 #F2E57F #8CF27F
monochromatic
#6417E0 #8747EC #AB7FF2 #CFB7F8 #EDE3FC
Accessibility & contrast
On white
2.98
#AB7FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.05
#AB7FF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AB7FF2
7.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB7FF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB7FF2 | 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)
#5B95F6
Deuteranopia (green-blind)
#6595EF
Tritanopia (blue-blind)
#9D94AD
Achromatopsia (no color)
#959595
Design tokens & code
CSS
--color: #ab7ff2; /* rgb */ color: rgb(171, 127, 242); /* oklch */ color: oklch(68.8% 0.168 299.7);
Tailwind
colors: {
custom: {
50: '#c7a5f7',
500: '#ab7ff2',
950: '#000000',
},
}SCSS
$custom: #ab7ff2; $custom-light: #c7a5f7; $custom-dark: #000000;
JSON
{
"hex": "#ab7ff2",
"rgb": {
"r": 171,
"g": 127,
"b": 242
},
"hsl": {
"h": 262.957,
"s": 81.56,
"l": 72.353
},
"oklch": {
"l": 0.68778,
"c": 0.16764,
"h": 299.7
},
"luminance": 0.30247
}Semantic roles & 50–950 ramp
primary
#AB7FF2
secondary
#E9F4D7
accent
#DE088C
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85