#AB2E7F#AB2E7F
#AB2E7F is a mid, vivid pink. Relative luminance 0.121; OKLCH L 51.9% C 0.180 H 345.5°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2E7F |
|---|---|
| RGB | rgb(171, 46, 127) |
| HSL | hsl(321, 58%, 43%) |
| HSV | hsv(321, 73%, 67%) |
| CMYK | cmyk(0%, 73.1%, 25.7%, 32.9%) |
| CIE-LAB | lab(41.45, 57.52, -17.02) |
| CIE-LCH | lch(41.45, 59.98, 343.52°) |
| OKLab | oklab(51.91% 0.1742 -0.0452) |
| OKLCH | oklch(51.91% 0.18 345.5) |
| XYZ | xyz(21.6033, 12.1465, 21.2814) |
| Luminance | 0.1214 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Magenta (survey)
#C20078
ΔE00 4.86
Mediumvioletred
#C71585
ΔE00 4.87
Red Violet
#9E0168
ΔE00 6.24
Warm Purple
#952E8F
ΔE00 7.09
Ugly Purple
#A442A0
ΔE00 7.59
Deep Magenta
#A0025C
ΔE00 7.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2E7F #2EAB5A
analogous
#992EAB #AB2E7F #AB2E40
triadic
#AB2E7F #7FAB2E #2E7FAB
tetradic
#AB2E7F #AB992E #2EAB5A #2E40AB
square
#AB2E7F #AB992E #2EAB5A #2E40AB
split-complementary
#AB2E7F #40AB2E #2EAB99
monochromatic
#4B1437 #7B215B #AB2E7F #CE489F #DB79B8
Accessibility & contrast
On white
6.12
#AB2E7F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.43
#AB2E7F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2E7F
6.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2E7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2E7F | 1.00 | 6.12 | 3.43 | 6.12 |
| #FFFFFF | 6.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3D5481
Deuteranopia (green-blind)
#63697C
Tritanopia (blue-blind)
#B72C52
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #ab2e7f; /* rgb */ color: rgb(171, 46, 127); /* oklch */ color: oklch(51.9% 0.180 345.5);
Tailwind
colors: {
custom: {
50: '#c872a4',
500: '#ab2e7f',
950: '#000000',
},
}SCSS
$custom: #ab2e7f; $custom-light: #c872a4; $custom-dark: #000000;
JSON
{
"hex": "#ab2e7f",
"rgb": {
"r": 171,
"g": 46,
"b": 127
},
"hsl": {
"h": 321.12,
"s": 57.604,
"l": 42.549
},
"oklch": {
"l": 0.51906,
"c": 0.17996,
"h": 345.5
},
"luminance": 0.12144
}Semantic roles & 50–950 ramp
primary
#AB2E7F
secondary
#72C38E
accent
#E17D47
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#14090F
muted
#827B7F