#AB2A9E#AB2A9E
#AB2A9E is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.1% C 0.205 H 332.6°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2A9E |
|---|---|
| RGB | rgb(171, 42, 158) |
| HSL | hsl(306, 61%, 42%) |
| HSV | hsv(306, 75%, 67%) |
| CMYK | cmyk(0%, 75.4%, 7.6%, 32.9%) |
| CIE-LAB | lab(42.44, 63.24, -34.34) |
| CIE-LCH | lch(42.44, 71.96, 331.50°) |
| OKLab | oklab(53.09% 0.1821 -0.0944) |
| OKLCH | oklch(53.09% 0.205 332.6) |
| XYZ | xyz(23.7942, 12.7845, 33.5556) |
| Luminance | 0.1278 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.62
Medium Purple
#9E43A2
ΔE00 4.13
Warm Purple
#952E8F
ΔE00 4.30
Barney Purple
#A00498
ΔE00 4.57
Barney
#AC1DB8
ΔE00 4.68
Purply
#983FB2
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2A9E #2AAB37
analogous
#782AAB #AB2A9E #AB2A5D
triadic
#AB2A9E #9EAB2A #2A9EAB
tetradic
#AB2A9E #AB782A #2AAB37 #2A5DAB
square
#AB2A9E #AB782A #2AAB37 #2A5DAB
split-complementary
#AB2A9E #5DAB2A #2AAB78
monochromatic
#491243 #7A1E71 #AB2A9E #D142C2 #DD73D2
Accessibility & contrast
On white
5.90
#AB2A9E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.56
#AB2A9E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2A9E
5.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2A9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2A9E | 1.00 | 5.90 | 3.56 | 5.90 |
| #FFFFFF | 5.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2259A1
Deuteranopia (green-blind)
#556B9B
Tritanopia (blue-blind)
#B33862
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #ab2a9e; /* rgb */ color: rgb(171, 42, 158); /* oklch */ color: oklch(53.1% 0.205 332.6);
Tailwind
colors: {
custom: {
50: '#c872bb',
500: '#ab2a9e',
950: '#000000',
},
}SCSS
$custom: #ab2a9e; $custom-light: #c872bb; $custom-dark: #000000;
JSON
{
"hex": "#ab2a9e",
"rgb": {
"r": 171,
"g": 42,
"b": 158
},
"hsl": {
"h": 306.047,
"s": 60.563,
"l": 41.765
},
"oklch": {
"l": 0.53093,
"c": 0.20509,
"h": 332.6
},
"luminance": 0.12782
}Semantic roles & 50–950 ramp
primary
#AB2A9E
secondary
#6DC476
accent
#E45444
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81