#AB50E2#AB50E2
#AB50E2 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 61.0% C 0.218 H 310.1°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).
Color values
| HEX | #AB50E2 |
|---|---|
| RGB | rgb(171, 80, 226) |
| HSL | hsl(277, 72%, 60%) |
| HSV | hsv(277, 65%, 89%) |
| CMYK | cmyk(24.3%, 64.6%, 0%, 11.4%) |
| CIE-LAB | lab(51.71, 60.94, -59.11) |
| CIE-LCH | lch(51.71, 84.90, 315.87°) |
| OKLab | oklab(61.02% 0.1407 -0.1669) |
| OKLCH | oklch(61.02% 0.218 310.1) |
| XYZ | xyz(33.3881, 19.8869, 74.0165) |
| Luminance | 0.1989 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 1.36
Lighter Purple
#A55AF4
ΔE00 3.74
Mediumorchid
#BA55D3
ΔE00 4.52
Amethyst
#9B5FC0
ΔE00 6.18
Neon Purple
#BC13FE
ΔE00 6.19
Bright Purple
#BE03FD
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB50E2 #87E250
analogous
#6250E2 #AB50E2 #E250D0
triadic
#AB50E2 #E2AB50 #50E2AB
tetradic
#AB50E2 #E26250 #87E250 #50D0E2
square
#AB50E2 #E26250 #87E250 #50D0E2
split-complementary
#AB50E2 #D0E250 #50E262
monochromatic
#6C1A9E #9023D2 #AB50E2 #C484EB #DDB9F3
Accessibility & contrast
On white
4.22
#AB50E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.98
#AB50E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AB50E2
4.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB50E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB50E2 | 1.00 | 4.22 | 4.98 | 4.98 |
| #FFFFFF | 4.22 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0077E6
Deuteranopia (green-blind)
#3C7DDF
Tritanopia (blue-blind)
#A46E92
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #ab50e2; /* rgb */ color: rgb(171, 80, 226); /* oklch */ color: oklch(61.0% 0.218 310.1);
Tailwind
colors: {
custom: {
50: '#c887ec',
500: '#ab50e2',
950: '#000000',
},
}SCSS
$custom: #ab50e2; $custom-light: #c887ec; $custom-dark: #000000;
JSON
{
"hex": "#ab50e2",
"rgb": {
"r": 171,
"g": 80,
"b": 226
},
"hsl": {
"h": 277.397,
"s": 71.569,
"l": 60
},
"oklch": {
"l": 0.61023,
"c": 0.21828,
"h": 310.1
},
"luminance": 0.19886
}Semantic roles & 50–950 ramp
primary
#AB50E2
secondary
#C0E3AB
accent
#EE397E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84