#AB2A9A#AB2A9A
#AB2A9A is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.9% C 0.202 H 334.1°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2A9A |
|---|---|
| RGB | rgb(171, 42, 154) |
| HSL | hsl(308, 61%, 42%) |
| HSV | hsv(308, 75%, 67%) |
| CMYK | cmyk(0%, 75.4%, 9.9%, 32.9%) |
| CIE-LAB | lab(42.23, 62.63, -32.26) |
| CIE-LCH | lch(42.23, 70.45, 332.75°) |
| OKLab | oklab(52.88% 0.1819 -0.0884) |
| OKLCH | oklch(52.88% 0.202 334.1) |
| XYZ | xyz(23.4555, 12.6490, 31.7718) |
| Luminance | 0.1265 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.79
Warm Purple
#952E8F
ΔE00 4.16
Medium Purple
#9E43A2
ΔE00 4.44
Barney Purple
#A00498
ΔE00 4.65
Barney
#AC1DB8
ΔE00 5.42
Purply
#983FB2
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2A9A #2AAB3B
analogous
#7C2AAB #AB2A9A #AB2A5A
triadic
#AB2A9A #9AAB2A #2A9AAB
tetradic
#AB2A9A #AB7C2A #2AAB3B #2A5AAB
square
#AB2A9A #AB7C2A #2AAB3B #2A5AAB
split-complementary
#AB2A9A #5AAB2A #2AAB7C
monochromatic
#491242 #7A1E6E #AB2A9A #D142BE #DD73CF
Accessibility & contrast
On white
5.95
#AB2A9A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#AB2A9A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2A9A
5.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2A9A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2A9A | 1.00 | 5.95 | 3.53 | 5.95 |
| #FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#27589D
Deuteranopia (green-blind)
#576A97
Tritanopia (blue-blind)
#B33660
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #ab2a9a; /* rgb */ color: rgb(171, 42, 154); /* oklch */ color: oklch(52.9% 0.202 334.1);
Tailwind
colors: {
custom: {
50: '#c872b8',
500: '#ab2a9a',
950: '#000000',
},
}SCSS
$custom: #ab2a9a; $custom-light: #c872b8; $custom-dark: #000000;
JSON
{
"hex": "#ab2a9a",
"rgb": {
"r": 171,
"g": 42,
"b": 154
},
"hsl": {
"h": 307.907,
"s": 60.563,
"l": 41.765
},
"oklch": {
"l": 0.52877,
"c": 0.20222,
"h": 334.1
},
"luminance": 0.12647
}Semantic roles & 50–950 ramp
primary
#AB2A9A
secondary
#6DC478
accent
#E45944
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80