#AB2B98#AB2B98
#AB2B98 is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.8% C 0.200 H 334.9°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2B98 |
|---|---|
| RGB | rgb(171, 43, 152) |
| HSL | hsl(309, 60%, 42%) |
| HSV | hsv(309, 75%, 67%) |
| CMYK | cmyk(0%, 74.9%, 11.1%, 32.9%) |
| CIE-LAB | lab(42.24, 62.02, -31.04) |
| CIE-LCH | lch(42.24, 69.35, 333.41°) |
| OKLab | oklab(52.85% 0.1808 -0.0849) |
| OKLCH | oklch(52.85% 0.2 334.9) |
| XYZ | xyz(23.3262, 12.6547, 30.9138) |
| Luminance | 0.1265 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.83
Warm Purple
#952E8F
ΔE00 4.19
Medium Purple
#9E43A2
ΔE00 4.56
Barney Purple
#A00498
ΔE00 4.87
Barney
#AC1DB8
ΔE00 5.84
Purply
#983FB2
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2B98 #2BAB3E
analogous
#7E2BAB #AB2B98 #AB2B58
triadic
#AB2B98 #98AB2B #2B98AB
tetradic
#AB2B98 #AB7E2B #2BAB3E #2B58AB
square
#AB2B98 #AB7E2B #2BAB3E #2B58AB
split-complementary
#AB2B98 #58AB2B #2BAB7E
monochromatic
#491241 #7A1F6D #AB2B98 #D043BB #DC74CD
Accessibility & contrast
On white
5.95
#AB2B98 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#AB2B98 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2B98
5.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2B98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2B98 | 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)
#2A589B
Deuteranopia (green-blind)
#596A95
Tritanopia (blue-blind)
#B3365F
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #ab2b98; /* rgb */ color: rgb(171, 43, 152); /* oklch */ color: oklch(52.8% 0.200 334.9);
Tailwind
colors: {
custom: {
50: '#c872b6',
500: '#ab2b98',
950: '#000000',
},
}SCSS
$custom: #ab2b98; $custom-light: #c872b6; $custom-dark: #000000;
JSON
{
"hex": "#ab2b98",
"rgb": {
"r": 171,
"g": 43,
"b": 152
},
"hsl": {
"h": 308.906,
"s": 59.813,
"l": 41.961
},
"oklch": {
"l": 0.5285,
"c": 0.19974,
"h": 334.9
},
"luminance": 0.12653
}Semantic roles & 50–950 ramp
primary
#AB2B98
secondary
#6EC47B
accent
#E35C45
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80