#AB2E98#AB2E98
#AB2E98 is a mid, vivid purple. Relative luminance 0.129; OKLCH L 53.1% C 0.196 H 334.9°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2E98 |
|---|---|
| RGB | rgb(171, 46, 152) |
| HSL | hsl(309, 58%, 43%) |
| HSV | hsv(309, 73%, 67%) |
| CMYK | cmyk(0%, 73.1%, 11.1%, 32.9%) |
| CIE-LAB | lab(42.58, 61.03, -30.50) |
| CIE-LCH | lch(42.58, 68.23, 333.45°) |
| OKLab | oklab(53.1% 0.1779 -0.0833) |
| OKLCH | oklch(53.1% 0.196 334.9) |
| XYZ | xyz(23.4393, 12.8810, 30.9515) |
| Luminance | 0.1288 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.52
Medium Purple
#9E43A2
ΔE00 4.35
Warm Purple
#952E8F
ΔE00 4.36
Barney Purple
#A00498
ΔE00 5.26
Barney
#AC1DB8
ΔE00 6.00
Purply
#983FB2
ΔE00 7.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2E98 #2EAB41
analogous
#802EAB #AB2E98 #AB2E59
triadic
#AB2E98 #98AB2E #2E98AB
tetradic
#AB2E98 #AB802E #2EAB41 #2E59AB
square
#AB2E98 #AB802E #2EAB41 #2E59AB
split-complementary
#AB2E98 #59AB2E #2EAB80
monochromatic
#4B1442 #7B216D #AB2E98 #CE48BA #DB79CC
Accessibility & contrast
On white
5.87
#AB2E98 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.58
#AB2E98 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2E98
5.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2E98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2E98 | 1.00 | 5.87 | 3.58 | 5.87 |
| #FFFFFF | 5.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D599B
Deuteranopia (green-blind)
#5A6B95
Tritanopia (blue-blind)
#B33860
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #ab2e98; /* rgb */ color: rgb(171, 46, 152); /* oklch */ color: oklch(53.1% 0.196 334.9);
Tailwind
colors: {
custom: {
50: '#c873b6',
500: '#ab2e98',
950: '#000000',
},
}SCSS
$custom: #ab2e98; $custom-light: #c873b6; $custom-dark: #000000;
JSON
{
"hex": "#ab2e98",
"rgb": {
"r": 171,
"g": 46,
"b": 152
},
"hsl": {
"h": 309.12,
"s": 57.604,
"l": 42.549
},
"oklch": {
"l": 0.53099,
"c": 0.19646,
"h": 334.9
},
"luminance": 0.12879
}Semantic roles & 50–950 ramp
primary
#AB2E98
secondary
#72C37E
accent
#E15E47
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80