#AB2E9D#AB2E9D
#AB2E9D is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.4% C 0.200 H 333.0°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2E9D |
|---|---|
| RGB | rgb(171, 46, 157) |
| HSL | hsl(307, 58%, 43%) |
| HSV | hsv(307, 73%, 67%) |
| CMYK | cmyk(0%, 73.1%, 8.2%, 32.9%) |
| CIE-LAB | lab(42.84, 61.80, -33.11) |
| CIE-LCH | lch(42.84, 70.11, 331.82°) |
| OKLab | oklab(53.36% 0.1783 -0.0909) |
| OKLCH | oklch(53.36% 0.2 333) |
| XYZ | xyz(23.8575, 13.0482, 33.1538) |
| Luminance | 0.1305 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.18
Medium Purple
#9E43A2
ΔE00 3.85
Warm Purple
#952E8F
ΔE00 4.45
Barney
#AC1DB8
ΔE00 5.07
Barney Purple
#A00498
ΔE00 5.08
Purply
#983FB2
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2E9D #2EAB3C
analogous
#7B2EAB #AB2E9D #AB2E5E
triadic
#AB2E9D #9DAB2E #2E9DAB
tetradic
#AB2E9D #AB7B2E #2EAB3C #2E5EAB
square
#AB2E9D #AB7B2E #2EAB3C #2E5EAB
split-complementary
#AB2E9D #5EAB2E #2EAB7B
monochromatic
#4B1444 #7B2171 #AB2E9D #CE48BF #DB79D0
Accessibility & contrast
On white
5.82
#AB2E9D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.61
#AB2E9D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2E9D
5.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2E9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2E9D | 1.00 | 5.82 | 3.61 | 5.82 |
| #FFFFFF | 5.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#295AA0
Deuteranopia (green-blind)
#576B9A
Tritanopia (blue-blind)
#B33B62
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #ab2e9d; /* rgb */ color: rgb(171, 46, 157); /* oklch */ color: oklch(53.4% 0.200 333.0);
Tailwind
colors: {
custom: {
50: '#c873ba',
500: '#ab2e9d',
950: '#000000',
},
}SCSS
$custom: #ab2e9d; $custom-light: #c873ba; $custom-dark: #000000;
JSON
{
"hex": "#ab2e9d",
"rgb": {
"r": 171,
"g": 46,
"b": 157
},
"hsl": {
"h": 306.72,
"s": 57.604,
"l": 42.549
},
"oklch": {
"l": 0.53363,
"c": 0.2001,
"h": 333
},
"luminance": 0.13046
}Semantic roles & 50–950 ramp
primary
#AB2E9D
secondary
#72C37B
accent
#E15847
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80