#AB2A7B#AB2A7B
#AB2A7B is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.4% C 0.182 H 347.0°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2A7B |
|---|---|
| RGB | rgb(171, 42, 123) |
| HSL | hsl(322, 61%, 42%) |
| HSV | hsv(322, 75%, 67%) |
| CMYK | cmyk(0%, 75.4%, 28.1%, 32.9%) |
| CIE-LAB | lab(40.81, 58.35, -15.52) |
| CIE-LCH | lch(40.81, 60.38, 345.10°) |
| OKLab | oklab(51.39% 0.1775 -0.041) |
| OKLCH | oklch(51.39% 0.182 347) |
| XYZ | xyz(21.1987, 11.7463, 19.8859) |
| Luminance | 0.1174 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Magenta (survey)
#C20078
ΔE00 4.41
Mediumvioletred
#C71585
ΔE00 4.93
Red Violet
#9E0168
ΔE00 5.49
Deep Magenta
#A0025C
ΔE00 6.92
Dark Fuchsia
#9D0759
ΔE00 7.51
Warm Purple
#952E8F
ΔE00 7.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2A7B #2AAB5A
analogous
#9B2AAB #AB2A7B #AB2A3A
triadic
#AB2A7B #7BAB2A #2A7BAB
tetradic
#AB2A7B #AB9B2A #2AAB5A #2A3AAB
square
#AB2A7B #AB9B2A #2AAB5A #2A3AAB
split-complementary
#AB2A7B #3AAB2A #2AAB9B
monochromatic
#491234 #7A1E58 #AB2A7B #D1429B #DD73B5
Accessibility & contrast
On white
6.27
#AB2A7B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.35
#AB2A7B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2A7B
6.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2A7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2A7B | 1.00 | 6.27 | 3.35 | 6.27 |
| #FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3C527D
Deuteranopia (green-blind)
#636878
Tritanopia (blue-blind)
#B7254F
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #ab2a7b; /* rgb */ color: rgb(171, 42, 123); /* oklch */ color: oklch(51.4% 0.182 347.0);
Tailwind
colors: {
custom: {
50: '#c870a1',
500: '#ab2a7b',
950: '#000000',
},
}SCSS
$custom: #ab2a7b; $custom-light: #c870a1; $custom-dark: #000000;
JSON
{
"hex": "#ab2a7b",
"rgb": {
"r": 171,
"g": 42,
"b": 123
},
"hsl": {
"h": 322.326,
"s": 60.563,
"l": 41.765
},
"oklch": {
"l": 0.51388,
"c": 0.18218,
"h": 347
},
"luminance": 0.11744
}Semantic roles & 50–950 ramp
primary
#AB2A7B
secondary
#6DC48D
accent
#E47F44
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080F
muted
#827B7E