#AB2E8A#AB2E8A
#AB2E8A is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.4% C 0.187 H 340.6°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2E8A |
|---|---|
| RGB | rgb(171, 46, 138) |
| HSL | hsl(316, 58%, 43%) |
| HSV | hsv(316, 73%, 67%) |
| CMYK | cmyk(0%, 73.1%, 19.3%, 32.9%) |
| CIE-LAB | lab(41.92, 59.00, -23.04) |
| CIE-LCH | lch(41.92, 63.34, 338.67°) |
| OKLab | oklab(52.4% 0.1762 -0.0621) |
| OKLCH | oklch(52.4% 0.187 340.6) |
| XYZ | xyz(22.3597, 12.4491, 25.2652) |
| Luminance | 0.1245 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 5.35
Ugly Purple
#A442A0
ΔE00 5.49
Mediumvioletred
#C71585
ΔE00 5.64
Magenta (survey)
#C20078
ΔE00 6.44
Medium Purple
#9E43A2
ΔE00 6.47
Barney Purple
#A00498
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2E8A #2EAB4F
analogous
#8E2EAB #AB2E8A #AB2E4B
triadic
#AB2E8A #8AAB2E #2E8AAB
tetradic
#AB2E8A #AB8E2E #2EAB4F #2E4BAB
square
#AB2E8A #AB8E2E #2EAB4F #2E4BAB
split-complementary
#AB2E8A #4BAB2E #2EAB8E
monochromatic
#4B143C #7B2163 #AB2E8A #CE48AB #DB79C1
Accessibility & contrast
On white
6.02
#AB2E8A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.49
#AB2E8A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2E8A
6.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2E8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2E8A | 1.00 | 6.02 | 3.49 | 6.02 |
| #FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#37568D
Deuteranopia (green-blind)
#5F6A87
Tritanopia (blue-blind)
#B53158
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #ab2e8a; /* rgb */ color: rgb(171, 46, 138); /* oklch */ color: oklch(52.4% 0.187 340.6);
Tailwind
colors: {
custom: {
50: '#c873ac',
500: '#ab2e8a',
950: '#000000',
},
}SCSS
$custom: #ab2e8a; $custom-light: #c873ac; $custom-dark: #000000;
JSON
{
"hex": "#ab2e8a",
"rgb": {
"r": 171,
"g": 46,
"b": 138
},
"hsl": {
"h": 315.84,
"s": 57.604,
"l": 42.549
},
"oklch": {
"l": 0.52404,
"c": 0.18683,
"h": 340.6
},
"luminance": 0.12447
}Semantic roles & 50–950 ramp
primary
#AB2E8A
secondary
#72C387
accent
#E17047
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F