#AB7CFC#AB7CFC
#AB7CFC is a light, vivid violet. Relative luminance 0.301; OKLCH L 68.9% C 0.185 H 298.4°. Best body text is #000000 at 7.02:1 contrast (WCAG AA passes).
Color values
| HEX | #AB7CFC |
|---|---|
| RGB | rgb(171, 124, 252) |
| HSL | hsl(262, 96%, 74%) |
| HSV | hsv(262, 51%, 99%) |
| CMYK | cmyk(32.1%, 50.8%, 0%, 1.2%) |
| CIE-LAB | lab(61.74, 44.44, -57.54) |
| CIE-LCH | lch(61.74, 72.70, 307.68°) |
| OKLab | oklab(68.86% 0.0877 -0.1624) |
| OKLCH | oklch(68.86% 0.185 298.4) |
| XYZ | xyz(41.5687, 30.1011, 95.6966) |
| Luminance | 0.3010 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.74
Light Purple
#BF77F6
ΔE00 4.37
Easter Purple
#C071FE
ΔE00 4.56
Periwinkle (survey)
#8E82FE
ΔE00 6.14
Liliac
#C48EFD
ΔE00 6.33
Mediumpurple
#9370DB
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB7CFC #CDFC7C
analogous
#7C8DFC #AB7CFC #EB7CFC
triadic
#AB7CFC #FCAB7C #7CFCAB
tetradic
#AB7CFC #FC7C8D #CDFC7C #7CFCEB
square
#AB7CFC #FC7C8D #CDFC7C #7CFCEB
split-complementary
#AB7CFC #FCEB7C #8DFC7C
monochromatic
#5F06F8 #8540FB #AB7CFC #D1B8FD #ECE1FE
Accessibility & contrast
On white
2.99
#AB7CFC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.02
#AB7CFC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AB7CFC
7.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB7CFC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB7CFC | 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)
#4D95FF
Deuteranopia (green-blind)
#5A94F9
Tritanopia (blue-blind)
#9A95B1
Achromatopsia (no color)
#959595
Design tokens & code
CSS
--color: #ab7cfc; /* rgb */ color: rgb(171, 124, 252); /* oklch */ color: oklch(68.9% 0.185 298.4);
Tailwind
colors: {
custom: {
50: '#c7a3fe',
500: '#ab7cfc',
950: '#000000',
},
}SCSS
$custom: #ab7cfc; $custom-light: #c7a3fe; $custom-dark: #000000;
JSON
{
"hex": "#ab7cfc",
"rgb": {
"r": 171,
"g": 124,
"b": 252
},
"hsl": {
"h": 262.031,
"s": 95.522,
"l": 73.725
},
"oklch": {
"l": 0.68856,
"c": 0.18456,
"h": 298.4
},
"luminance": 0.30102
}Semantic roles & 50–950 ramp
primary
#AB7CFC
secondary
#EAF7D4
accent
#E60091
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F18
muted
#827F86