#AB56E1#AB56E1
#AB56E1 is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.7% C 0.209 H 309.8°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).
Color values
| HEX | #AB56E1 |
|---|---|
| RGB | rgb(171, 86, 225) |
| HSL | hsl(277, 70%, 61%) |
| HSV | hsv(277, 62%, 88%) |
| CMYK | cmyk(24%, 61.8%, 0%, 11.8%) |
| CIE-LAB | lab(52.68, 57.91, -57.00) |
| CIE-LCH | lch(52.68, 81.26, 315.46°) |
| OKLab | oklab(61.7% 0.1339 -0.1607) |
| OKLCH | oklch(61.7% 0.209 309.8) |
| XYZ | xyz(33.7104, 20.7504, 73.4490) |
| Luminance | 0.2075 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 1.82
Lighter Purple
#A55AF4
ΔE00 3.33
Mediumorchid
#BA55D3
ΔE00 4.11
Amethyst
#9B5FC0
ΔE00 5.71
Bright Lilac
#C95EFB
ΔE00 6.61
Bright Lavender
#C760FF
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB56E1 #8CE156
analogous
#6556E1 #AB56E1 #E156D1
triadic
#AB56E1 #E1AB56 #56E1AB
tetradic
#AB56E1 #E16556 #8CE156 #56D1E1
square
#AB56E1 #E16556 #8CE156 #56D1E1
split-complementary
#AB56E1 #D1E156 #56E165
monochromatic
#6D1CA0 #9026D4 #AB56E1 #C58AEA #DFBEF3
Accessibility & contrast
On white
4.08
#AB56E1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.15
#AB56E1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AB56E1
5.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB56E1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB56E1 | 1.00 | 4.08 | 5.15 | 5.15 |
| #FFFFFF | 4.08 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.15 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.15 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#117AE5
Deuteranopia (green-blind)
#447FDE
Tritanopia (blue-blind)
#A47194
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #ab56e1; /* rgb */ color: rgb(171, 86, 225); /* oklch */ color: oklch(61.7% 0.209 309.8);
Tailwind
colors: {
custom: {
50: '#c88aeb',
500: '#ab56e1',
950: '#000000',
},
}SCSS
$custom: #ab56e1; $custom-light: #c88aeb; $custom-dark: #000000;
JSON
{
"hex": "#ab56e1",
"rgb": {
"r": 171,
"g": 86,
"b": 225
},
"hsl": {
"h": 276.691,
"s": 69.849,
"l": 60.98
},
"oklch": {
"l": 0.61701,
"c": 0.20915,
"h": 309.8
},
"luminance": 0.2075
}Semantic roles & 50–950 ramp
primary
#AB56E1
secondary
#C4E4AF
accent
#D2145E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84