#AB2A9B#AB2A9B
#AB2A9B is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 52.9% C 0.203 H 333.7°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2A9B |
|---|---|
| RGB | rgb(171, 42, 155) |
| HSL | hsl(307, 61%, 42%) |
| HSV | hsv(307, 75%, 67%) |
| CMYK | cmyk(0%, 75.4%, 9.4%, 32.9%) |
| CIE-LAB | lab(42.28, 62.78, -32.78) |
| CIE-LCH | lch(42.28, 70.83, 332.43°) |
| OKLab | oklab(52.93% 0.1819 -0.0899) |
| OKLCH | oklch(52.93% 0.203 333.7) |
| XYZ | xyz(23.5391, 12.6825, 32.2122) |
| Luminance | 0.1268 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.73
Warm Purple
#952E8F
ΔE00 4.18
Medium Purple
#9E43A2
ΔE00 4.35
Barney Purple
#A00498
ΔE00 4.62
Barney
#AC1DB8
ΔE00 5.23
Purply
#983FB2
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2A9B #2AAB3A
analogous
#7B2AAB #AB2A9B #AB2A5B
triadic
#AB2A9B #9BAB2A #2A9BAB
tetradic
#AB2A9B #AB7B2A #2AAB3A #2A5BAB
square
#AB2A9B #AB7B2A #2AAB3A #2A5BAB
split-complementary
#AB2A9B #5BAB2A #2AAB7B
monochromatic
#491242 #7A1E6E #AB2A9B #D142BF #DD73CF
Accessibility & contrast
On white
5.94
#AB2A9B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.54
#AB2A9B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2A9B
5.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2A9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2A9B | 1.00 | 5.94 | 3.54 | 5.94 |
| #FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#26589E
Deuteranopia (green-blind)
#576A98
Tritanopia (blue-blind)
#B33760
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #ab2a9b; /* rgb */ color: rgb(171, 42, 155); /* oklch */ color: oklch(52.9% 0.203 333.7);
Tailwind
colors: {
custom: {
50: '#c872b9',
500: '#ab2a9b',
950: '#000000',
},
}SCSS
$custom: #ab2a9b; $custom-light: #c872b9; $custom-dark: #000000;
JSON
{
"hex": "#ab2a9b",
"rgb": {
"r": 171,
"g": 42,
"b": 155
},
"hsl": {
"h": 307.442,
"s": 60.563,
"l": 41.765
},
"oklch": {
"l": 0.5293,
"c": 0.20293,
"h": 333.7
},
"luminance": 0.1268
}Semantic roles & 50–950 ramp
primary
#AB2A9B
secondary
#6DC478
accent
#E45844
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80