#AB2A7A#AB2A7A
#AB2A7A is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.3% C 0.182 H 347.4°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2A7A |
|---|---|
| RGB | rgb(171, 42, 122) |
| HSL | hsl(323, 61%, 42%) |
| HSV | hsv(323, 75%, 67%) |
| CMYK | cmyk(0%, 75.4%, 28.7%, 32.9%) |
| CIE-LAB | lab(40.77, 58.23, -14.97) |
| CIE-LCH | lch(40.77, 60.12, 345.58°) |
| OKLab | oklab(51.35% 0.1773 -0.0395) |
| OKLCH | oklch(51.35% 0.182 347.4) |
| XYZ | xyz(21.1364, 11.7214, 19.5579) |
| Luminance | 0.1172 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Magenta (survey)
#C20078
ΔE00 4.31
Mediumvioletred
#C71585
ΔE00 4.94
Red Violet
#9E0168
ΔE00 5.42
Deep Magenta
#A0025C
ΔE00 6.76
Dark Fuchsia
#9D0759
ΔE00 7.33
Warm Purple
#952E8F
ΔE00 7.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2A7A #2AAB5B
analogous
#9C2AAB #AB2A7A #AB2A3A
triadic
#AB2A7A #7AAB2A #2A7AAB
tetradic
#AB2A7A #AB9C2A #2AAB5B #2A3AAB
square
#AB2A7A #AB9C2A #2AAB5B #2A3AAB
split-complementary
#AB2A7A #3AAB2A #2AAB9C
monochromatic
#491234 #7A1E57 #AB2A7A #D1429A #DD73B4
Accessibility & contrast
On white
6.28
#AB2A7A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.34
#AB2A7A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2A7A
6.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2A7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2A7A | 1.00 | 6.28 | 3.34 | 6.28 |
| #FFFFFF | 6.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3D527C
Deuteranopia (green-blind)
#636877
Tritanopia (blue-blind)
#B7254E
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #ab2a7a; /* rgb */ color: rgb(171, 42, 122); /* oklch */ color: oklch(51.3% 0.182 347.4);
Tailwind
colors: {
custom: {
50: '#c870a0',
500: '#ab2a7a',
950: '#000000',
},
}SCSS
$custom: #ab2a7a; $custom-light: #c870a0; $custom-dark: #000000;
JSON
{
"hex": "#ab2a7a",
"rgb": {
"r": 171,
"g": 42,
"b": 122
},
"hsl": {
"h": 322.791,
"s": 60.563,
"l": 41.765
},
"oklch": {
"l": 0.51345,
"c": 0.18162,
"h": 347.4
},
"luminance": 0.11719
}Semantic roles & 50–950 ramp
primary
#AB2A7A
secondary
#6DC48E
accent
#E48144
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080E
muted
#827B7E