#AB2E9B#AB2E9B
#AB2E9B is a mid, vivid purple. Relative luminance 0.130; OKLCH L 53.3% C 0.199 H 333.7°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2E9B |
|---|---|
| RGB | rgb(171, 46, 155) |
| HSL | hsl(308, 58%, 43%) |
| HSV | hsv(308, 73%, 67%) |
| CMYK | cmyk(0%, 73.1%, 9.4%, 32.9%) |
| CIE-LAB | lab(42.73, 61.49, -32.07) |
| CIE-LCH | lch(42.73, 69.35, 332.46°) |
| OKLab | oklab(53.26% 0.1781 -0.0879) |
| OKLCH | oklch(53.26% 0.199 333.7) |
| XYZ | xyz(23.6882, 12.9805, 32.2619) |
| Luminance | 0.1298 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.28
Medium Purple
#9E43A2
ΔE00 4.03
Warm Purple
#952E8F
ΔE00 4.39
Barney Purple
#A00498
ΔE00 5.12
Barney
#AC1DB8
ΔE00 5.44
Purply
#983FB2
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2E9B #2EAB3E
analogous
#7D2EAB #AB2E9B #AB2E5C
triadic
#AB2E9B #9BAB2E #2E9BAB
tetradic
#AB2E9B #AB7D2E #2EAB3E #2E5CAB
square
#AB2E9B #AB7D2E #2EAB3E #2E5CAB
split-complementary
#AB2E9B #5CAB2E #2EAB7D
monochromatic
#4B1444 #7B216F #AB2E9B #CE48BD #DB79CE
Accessibility & contrast
On white
5.84
#AB2E9B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.60
#AB2E9B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2E9B
5.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2E9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2E9B | 1.00 | 5.84 | 3.60 | 5.84 |
| #FFFFFF | 5.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A599E
Deuteranopia (green-blind)
#586B98
Tritanopia (blue-blind)
#B33A61
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #ab2e9b; /* rgb */ color: rgb(171, 46, 155); /* oklch */ color: oklch(53.3% 0.199 333.7);
Tailwind
colors: {
custom: {
50: '#c873b9',
500: '#ab2e9b',
950: '#000000',
},
}SCSS
$custom: #ab2e9b; $custom-light: #c873b9; $custom-dark: #000000;
JSON
{
"hex": "#ab2e9b",
"rgb": {
"r": 171,
"g": 46,
"b": 155
},
"hsl": {
"h": 307.68,
"s": 57.604,
"l": 42.549
},
"oklch": {
"l": 0.53256,
"c": 0.19863,
"h": 333.7
},
"luminance": 0.12978
}Semantic roles & 50–950 ramp
primary
#AB2E9B
secondary
#72C37C
accent
#E15B47
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80