#AB51E7#AB51E7
#AB51E7 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.5% C 0.222 H 308.8°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #AB51E7 |
|---|---|
| RGB | rgb(171, 81, 231) |
| HSL | hsl(276, 76%, 61%) |
| HSV | hsv(276, 65%, 91%) |
| CMYK | cmyk(26%, 64.9%, 0%, 9.4%) |
| CIE-LAB | lab(52.19, 61.57, -61.16) |
| CIE-LCH | lch(52.19, 86.78, 315.19°) |
| OKLab | oklab(61.47% 0.1393 -0.1729) |
| OKLCH | oklch(61.47% 0.222 308.8) |
| XYZ | xyz(34.1579, 20.3129, 77.7072) |
| Luminance | 0.2031 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 1.06
Lighter Purple
#A55AF4
ΔE00 3.01
Mediumorchid
#BA55D3
ΔE00 4.95
Neon Purple
#BC13FE
ΔE00 6.15
Purpley
#8756E4
ΔE00 6.47
Electric Purple
#AA23FF
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB51E7 #8DE751
analogous
#6051E7 #AB51E7 #E751D8
triadic
#AB51E7 #E7AB51 #51E7AB
tetradic
#AB51E7 #E76051 #8DE751 #51D8E7
square
#AB51E7 #E76051 #8DE751 #51D8E7
split-complementary
#AB51E7 #D8E751 #51E760
monochromatic
#6D17A7 #901EDC #AB51E7 #C587EE #DFBDF6
Accessibility & contrast
On white
4.15
#AB51E7 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.06
#AB51E7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AB51E7
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB51E7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB51E7 | 1.00 | 4.15 | 5.06 | 5.06 |
| #FFFFFF | 4.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.06 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.06 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0079EC
Deuteranopia (green-blind)
#377EE4
Tritanopia (blue-blind)
#A27095
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #ab51e7; /* rgb */ color: rgb(171, 81, 231); /* oklch */ color: oklch(61.5% 0.222 308.8);
Tailwind
colors: {
custom: {
50: '#c887ef',
500: '#ab51e7',
950: '#000000',
},
}SCSS
$custom: #ab51e7; $custom-light: #c887ef; $custom-dark: #000000;
JSON
{
"hex": "#ab51e7",
"rgb": {
"r": 171,
"g": 81,
"b": 231
},
"hsl": {
"h": 276,
"s": 75.758,
"l": 61.176
},
"oklch": {
"l": 0.61468,
"c": 0.22199,
"h": 308.8
},
"luminance": 0.20312
}Semantic roles & 50–950 ramp
primary
#AB51E7
secondary
#C4E6AE
accent
#D80E5F
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85