#AB51E4#AB51E4
#AB51E4 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 61.3% C 0.219 H 309.6°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).
Color values
| HEX | #AB51E4 |
|---|---|
| RGB | rgb(171, 81, 228) |
| HSL | hsl(277, 73%, 61%) |
| HSV | hsv(277, 64%, 89%) |
| CMYK | cmyk(25%, 64.5%, 0%, 10.6%) |
| CIE-LAB | lab(52.00, 60.92, -59.77) |
| CIE-LCH | lch(52.00, 85.34, 315.54°) |
| OKLab | oklab(61.27% 0.1395 -0.1688) |
| OKLCH | oklch(61.27% 0.219 309.6) |
| XYZ | xyz(33.7379, 20.1449, 75.4948) |
| Luminance | 0.2014 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 1.19
Lighter Purple
#A55AF4
ΔE00 3.37
Mediumorchid
#BA55D3
ΔE00 4.65
Neon Purple
#BC13FE
ΔE00 6.26
Amethyst
#9B5FC0
ΔE00 6.33
Purpley
#8756E4
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB51E4 #8AE451
analogous
#6251E4 #AB51E4 #E451D3
triadic
#AB51E4 #E4AB51 #51E4AB
tetradic
#AB51E4 #E46251 #8AE451 #51D3E4
square
#AB51E4 #E46251 #8AE451 #51D3E4
split-complementary
#AB51E4 #D3E451 #51E462
monochromatic
#6D19A2 #9021D7 #AB51E4 #C586EC #DEBBF4
Accessibility & contrast
On white
4.18
#AB51E4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.03
#AB51E4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AB51E4
5.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB51E4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB51E4 | 1.00 | 4.18 | 5.03 | 5.03 |
| #FFFFFF | 4.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.03 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.03 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0078E8
Deuteranopia (green-blind)
#3B7DE1
Tritanopia (blue-blind)
#A36F94
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #ab51e4; /* rgb */ color: rgb(171, 81, 228); /* oklch */ color: oklch(61.3% 0.219 309.6);
Tailwind
colors: {
custom: {
50: '#c887ed',
500: '#ab51e4',
950: '#000000',
},
}SCSS
$custom: #ab51e4; $custom-light: #c887ed; $custom-dark: #000000;
JSON
{
"hex": "#ab51e4",
"rgb": {
"r": 171,
"g": 81,
"b": 228
},
"hsl": {
"h": 276.735,
"s": 73.134,
"l": 60.588
},
"oklch": {
"l": 0.61273,
"c": 0.21897,
"h": 309.6
},
"luminance": 0.20144
}Semantic roles & 50–950 ramp
primary
#AB51E4
secondary
#C2E4AC
accent
#D5105D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84