#AB2B9B#AB2B9B
#AB2B9B is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.0% C 0.202 H 333.7°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2B9B |
|---|---|
| RGB | rgb(171, 43, 155) |
| HSL | hsl(308, 60%, 42%) |
| HSV | hsv(308, 75%, 67%) |
| CMYK | cmyk(0%, 74.9%, 9.4%, 32.9%) |
| CIE-LAB | lab(42.39, 62.47, -32.61) |
| CIE-LCH | lch(42.39, 70.47, 332.44°) |
| OKLab | oklab(53.01% 0.181 -0.0894) |
| OKLCH | oklch(53.01% 0.202 333.7) |
| XYZ | xyz(23.5750, 12.7543, 32.2242) |
| Luminance | 0.1275 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.62
Warm Purple
#952E8F
ΔE00 4.23
Medium Purple
#9E43A2
ΔE00 4.27
Barney Purple
#A00498
ΔE00 4.74
Barney
#AC1DB8
ΔE00 5.28
Purply
#983FB2
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2B9B #2BAB3B
analogous
#7B2BAB #AB2B9B #AB2B5B
triadic
#AB2B9B #9BAB2B #2B9BAB
tetradic
#AB2B9B #AB7B2B #2BAB3B #2B5BAB
square
#AB2B9B #AB7B2B #2BAB3B #2B5BAB
split-complementary
#AB2B9B #5BAB2B #2BAB7B
monochromatic
#491242 #7A1F6F #AB2B9B #D043BE #DC74CF
Accessibility & contrast
On white
5.91
#AB2B9B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.55
#AB2B9B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2B9B
5.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2B9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2B9B | 1.00 | 5.91 | 3.55 | 5.91 |
| #FFFFFF | 5.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#27589E
Deuteranopia (green-blind)
#576B98
Tritanopia (blue-blind)
#B33860
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #ab2b9b; /* rgb */ color: rgb(171, 43, 155); /* oklch */ color: oklch(53.0% 0.202 333.7);
Tailwind
colors: {
custom: {
50: '#c872b9',
500: '#ab2b9b',
950: '#000000',
},
}SCSS
$custom: #ab2b9b; $custom-light: #c872b9; $custom-dark: #000000;
JSON
{
"hex": "#ab2b9b",
"rgb": {
"r": 171,
"g": 43,
"b": 155
},
"hsl": {
"h": 307.5,
"s": 59.813,
"l": 41.961
},
"oklch": {
"l": 0.53009,
"c": 0.20188,
"h": 333.7
},
"luminance": 0.12752
}Semantic roles & 50–950 ramp
primary
#AB2B9B
secondary
#6EC479
accent
#E35945
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80