#AB2C98#AB2C98
#AB2C98 is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.9% C 0.199 H 334.9°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2C98 |
|---|---|
| RGB | rgb(171, 44, 152) |
| HSL | hsl(309, 59%, 42%) |
| HSV | hsv(309, 74%, 67%) |
| CMYK | cmyk(0%, 74.3%, 11.1%, 32.9%) |
| CIE-LAB | lab(42.35, 61.69, -30.86) |
| CIE-LCH | lch(42.35, 68.98, 333.42°) |
| OKLab | oklab(52.93% 0.1799 -0.0844) |
| OKLCH | oklch(52.93% 0.199 334.9) |
| XYZ | xyz(23.3630, 12.7284, 30.9260) |
| Luminance | 0.1273 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.73
Warm Purple
#952E8F
ΔE00 4.25
Medium Purple
#9E43A2
ΔE00 4.49
Barney Purple
#A00498
ΔE00 5.00
Barney
#AC1DB8
ΔE00 5.89
Purply
#983FB2
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2C98 #2CAB3F
analogous
#7E2CAB #AB2C98 #AB2C59
triadic
#AB2C98 #98AB2C #2C98AB
tetradic
#AB2C98 #AB7E2C #2CAB3F #2C59AB
square
#AB2C98 #AB7E2C #2CAB3F #2C59AB
split-complementary
#AB2C98 #59AB2C #2CAB7E
monochromatic
#4A1341 #7A1F6D #AB2C98 #CF45BA #DC76CC
Accessibility & contrast
On white
5.92
#AB2C98 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.55
#AB2C98 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2C98
5.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2C98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2C98 | 1.00 | 5.92 | 3.55 | 5.92 |
| #FFFFFF | 5.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B589B
Deuteranopia (green-blind)
#596B95
Tritanopia (blue-blind)
#B3375F
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #ab2c98; /* rgb */ color: rgb(171, 44, 152); /* oklch */ color: oklch(52.9% 0.199 334.9);
Tailwind
colors: {
custom: {
50: '#c872b6',
500: '#ab2c98',
950: '#000000',
},
}SCSS
$custom: #ab2c98; $custom-light: #c872b6; $custom-dark: #000000;
JSON
{
"hex": "#ab2c98",
"rgb": {
"r": 171,
"g": 44,
"b": 152
},
"hsl": {
"h": 308.976,
"s": 59.07,
"l": 42.157
},
"oklch": {
"l": 0.52931,
"c": 0.19867,
"h": 334.9
},
"luminance": 0.12726
}Semantic roles & 50–950 ramp
primary
#AB2C98
secondary
#6FC37C
accent
#E25D46
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80