#AB51E9#AB51E9
#AB51E9 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.6% C 0.224 H 308.4°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).
Color values
| HEX | #AB51E9 |
|---|---|
| RGB | rgb(171, 81, 233) |
| HSL | hsl(276, 78%, 62%) |
| HSV | hsv(276, 65%, 91%) |
| CMYK | cmyk(26.6%, 65.2%, 0%, 8.6%) |
| CIE-LAB | lab(52.32, 62.00, -62.08) |
| CIE-LCH | lch(52.32, 87.74, 314.96°) |
| OKLab | oklab(61.6% 0.1391 -0.1756) |
| OKLCH | oklch(61.6% 0.224 308.4) |
| XYZ | xyz(34.4420, 20.4265, 79.2033) |
| Luminance | 0.2043 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 1.08
Lighter Purple
#A55AF4
ΔE00 2.78
Mediumorchid
#BA55D3
ΔE00 5.16
Neon Purple
#BC13FE
ΔE00 6.10
Purpley
#8756E4
ΔE00 6.42
Electric Purple
#AA23FF
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB51E9 #8FE951
analogous
#5F51E9 #AB51E9 #E951DB
triadic
#AB51E9 #E9AB51 #51E9AB
tetradic
#AB51E9 #E95F51 #8FE951 #51DBE9
square
#AB51E9 #E95F51 #8FE951 #51DBE9
split-complementary
#AB51E9 #DBE951 #51E95F
monochromatic
#6D16AA #901CE0 #AB51E9 #C587F0 #DFBEF7
Accessibility & contrast
On white
4.13
#AB51E9 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.09
#AB51E9 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AB51E9
5.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB51E9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB51E9 | 1.00 | 4.13 | 5.09 | 5.09 |
| #FFFFFF | 4.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.09 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.09 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0079EE
Deuteranopia (green-blind)
#347EE6
Tritanopia (blue-blind)
#A27196
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #ab51e9; /* rgb */ color: rgb(171, 81, 233); /* oklch */ color: oklch(61.6% 0.224 308.4);
Tailwind
colors: {
custom: {
50: '#c887f1',
500: '#ab51e9',
950: '#000000',
},
}SCSS
$custom: #ab51e9; $custom-light: #c887f1; $custom-dark: #000000;
JSON
{
"hex": "#ab51e9",
"rgb": {
"r": 171,
"g": 81,
"b": 233
},
"hsl": {
"h": 275.526,
"s": 77.551,
"l": 61.569
},
"oklch": {
"l": 0.616,
"c": 0.22402,
"h": 308.4
},
"luminance": 0.20426
}Semantic roles & 50–950 ramp
primary
#AB51E9
secondary
#C6E7AF
accent
#DA0C60
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85