#AB2C7F#AB2C7F
#AB2C7F is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.7% C 0.182 H 345.3°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2C7F |
|---|---|
| RGB | rgb(171, 44, 127) |
| HSL | hsl(321, 59%, 42%) |
| HSV | hsv(321, 74%, 67%) |
| CMYK | cmyk(0%, 74.3%, 25.7%, 32.9%) |
| CIE-LAB | lab(41.21, 58.20, -17.39) |
| CIE-LCH | lch(41.21, 60.74, 343.36°) |
| OKLab | oklab(51.73% 0.1763 -0.0462) |
| OKLCH | oklch(51.73% 0.182 345.3) |
| XYZ | xyz(21.5269, 11.9939, 21.2559) |
| Luminance | 0.1199 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Magenta (survey)
#C20078
ΔE00 4.85
Mediumvioletred
#C71585
ΔE00 4.92
Red Violet
#9E0168
ΔE00 6.04
Warm Purple
#952E8F
ΔE00 6.95
Ugly Purple
#A442A0
ΔE00 7.63
Deep Magenta
#A0025C
ΔE00 7.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2C7F #2CAB58
analogous
#972CAB #AB2C7F #AB2C40
triadic
#AB2C7F #7FAB2C #2C7FAB
tetradic
#AB2C7F #AB972C #2CAB58 #2C40AB
square
#AB2C7F #AB972C #2CAB58 #2C40AB
split-complementary
#AB2C7F #40AB2C #2CAB97
monochromatic
#4A1337 #7A1F5B #AB2C7F #CF459F #DC76B8
Accessibility & contrast
On white
6.18
#AB2C7F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.40
#AB2C7F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2C7F
6.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2C7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2C7F | 1.00 | 6.18 | 3.40 | 6.18 |
| #FFFFFF | 6.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3C5381
Deuteranopia (green-blind)
#62697C
Tritanopia (blue-blind)
#B72A52
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #ab2c7f; /* rgb */ color: rgb(171, 44, 127); /* oklch */ color: oklch(51.7% 0.182 345.3);
Tailwind
colors: {
custom: {
50: '#c871a4',
500: '#ab2c7f',
950: '#000000',
},
}SCSS
$custom: #ab2c7f; $custom-light: #c871a4; $custom-dark: #000000;
JSON
{
"hex": "#ab2c7f",
"rgb": {
"r": 171,
"g": 44,
"b": 127
},
"hsl": {
"h": 320.787,
"s": 59.07,
"l": 42.157
},
"oklch": {
"l": 0.5173,
"c": 0.18226,
"h": 345.3
},
"luminance": 0.11992
}Semantic roles & 50–950 ramp
primary
#AB2C7F
secondary
#6FC38C
accent
#E27C46
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#14090F
muted
#827B7F