#AB7CFD#AB7CFD
#AB7CFD is a light, vivid violet. Relative luminance 0.302; OKLCH L 68.9% C 0.186 H 298.2°. Best body text is #000000 at 7.03:1 contrast (WCAG AA passes).
Color values
| HEX | #AB7CFD |
|---|---|
| RGB | rgb(171, 124, 253) |
| HSL | hsl(262, 97%, 74%) |
| HSV | hsv(262, 51%, 99%) |
| CMYK | cmyk(32.4%, 51%, 0%, 0.8%) |
| CIE-LAB | lab(61.80, 44.69, -58.00) |
| CIE-LCH | lch(61.80, 73.22, 307.61°) |
| OKLab | oklab(68.91% 0.0878 -0.1637) |
| OKLCH | oklch(68.91% 0.186 298.2) |
| XYZ | xyz(41.7275, 30.1646, 96.5334) |
| Luminance | 0.3016 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.79
Light Purple
#BF77F6
ΔE00 4.43
Easter Purple
#C071FE
ΔE00 4.58
Periwinkle (survey)
#8E82FE
ΔE00 6.09
Liliac
#C48EFD
ΔE00 6.36
Mediumpurple
#9370DB
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB7CFD #CEFD7C
analogous
#7C8EFD #AB7CFD #EB7CFD
triadic
#AB7CFD #FDAB7C #7CFDAB
tetradic
#AB7CFD #FD7C8E #CEFD7C #7CFDEB
square
#AB7CFD #FD7C8E #CEFD7C #7CFDEB
split-complementary
#AB7CFD #FDEB7C #8EFD7C
monochromatic
#5E04FB #8440FC #AB7CFD #D2B8FE #ECE1FF
Accessibility & contrast
On white
2.99
#AB7CFD on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.03
#AB7CFD on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AB7CFD
7.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB7CFD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB7CFD | 1.00 | 2.99 | 7.03 | 7.03 |
| #FFFFFF | 2.99 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.03 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.03 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4C95FF
Deuteranopia (green-blind)
#5994FA
Tritanopia (blue-blind)
#9995B1
Achromatopsia (no color)
#959595
Design tokens & code
CSS
--color: #ab7cfd; /* rgb */ color: rgb(171, 124, 253); /* oklch */ color: oklch(68.9% 0.186 298.2);
Tailwind
colors: {
custom: {
50: '#c8a3ff',
500: '#ab7cfd',
950: '#000000',
},
}SCSS
$custom: #ab7cfd; $custom-light: #c8a3ff; $custom-dark: #000000;
JSON
{
"hex": "#ab7cfd",
"rgb": {
"r": 171,
"g": 124,
"b": 253
},
"hsl": {
"h": 261.86,
"s": 96.992,
"l": 73.922
},
"oklch": {
"l": 0.68914,
"c": 0.18578,
"h": 298.2
},
"luminance": 0.30165
}Semantic roles & 50–950 ramp
primary
#AB7CFD
secondary
#EAF7D4
accent
#E60092
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F18
muted
#827F86