#AB2B97#AB2B97
#AB2B97 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.8% C 0.199 H 335.2°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2B97 |
|---|---|
| RGB | rgb(171, 43, 151) |
| HSL | hsl(309, 60%, 42%) |
| HSV | hsv(309, 75%, 67%) |
| CMYK | cmyk(0%, 74.9%, 11.7%, 32.9%) |
| CIE-LAB | lab(42.19, 61.87, -30.51) |
| CIE-LCH | lch(42.19, 68.98, 333.75°) |
| OKLab | oklab(52.8% 0.1807 -0.0834) |
| OKLCH | oklch(52.8% 0.199 335.2) |
| XYZ | xyz(23.2447, 12.6221, 30.4843) |
| Luminance | 0.1262 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.92
Warm Purple
#952E8F
ΔE00 4.20
Medium Purple
#9E43A2
ΔE00 4.67
Barney Purple
#A00498
ΔE00 4.93
Barney
#AC1DB8
ΔE00 6.03
Purply
#983FB2
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2B97 #2BAB3F
analogous
#7F2BAB #AB2B97 #AB2B57
triadic
#AB2B97 #97AB2B #2B97AB
tetradic
#AB2B97 #AB7F2B #2BAB3F #2B57AB
square
#AB2B97 #AB7F2B #2BAB3F #2B57AB
split-complementary
#AB2B97 #57AB2B #2BAB7F
monochromatic
#491241 #7A1F6C #AB2B97 #D043BA #DC74CC
Accessibility & contrast
On white
5.96
#AB2B97 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#AB2B97 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2B97
5.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2B97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2B97 | 1.00 | 5.96 | 3.52 | 5.96 |
| #FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B579A
Deuteranopia (green-blind)
#596A94
Tritanopia (blue-blind)
#B4355E
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #ab2b97; /* rgb */ color: rgb(171, 43, 151); /* oklch */ color: oklch(52.8% 0.199 335.2);
Tailwind
colors: {
custom: {
50: '#c872b6',
500: '#ab2b97',
950: '#000000',
},
}SCSS
$custom: #ab2b97; $custom-light: #c872b6; $custom-dark: #000000;
JSON
{
"hex": "#ab2b97",
"rgb": {
"r": 171,
"g": 43,
"b": 151
},
"hsl": {
"h": 309.375,
"s": 59.813,
"l": 41.961
},
"oklch": {
"l": 0.52798,
"c": 0.19903,
"h": 335.2
},
"luminance": 0.1262
}Semantic roles & 50–950 ramp
primary
#AB2B97
secondary
#6EC47C
accent
#E35E45
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80