#AB2F7F#AB2F7F
#AB2F7F is a mid, vivid pink. Relative luminance 0.122; OKLCH L 52.0% C 0.179 H 345.5°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2F7F |
|---|---|
| RGB | rgb(171, 47, 127) |
| HSL | hsl(321, 57%, 43%) |
| HSV | hsv(321, 73%, 67%) |
| CMYK | cmyk(0%, 72.5%, 25.7%, 32.9%) |
| CIE-LAB | lab(41.57, 57.17, -16.83) |
| CIE-LCH | lch(41.57, 59.59, 343.60°) |
| OKLab | oklab(52% 0.1731 -0.0447) |
| OKLCH | oklch(52% 0.179 345.5) |
| XYZ | xyz(21.6428, 12.2256, 21.2945) |
| Luminance | 0.1222 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Mediumvioletred
#C71585
ΔE00 4.85
Magenta (survey)
#C20078
ΔE00 4.87
Red Violet
#9E0168
ΔE00 6.35
Warm Purple
#952E8F
ΔE00 7.17
Ugly Purple
#A442A0
ΔE00 7.58
Deep Magenta
#A0025C
ΔE00 7.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2F7F #2FAB5B
analogous
#992FAB #AB2F7F #AB2F41
triadic
#AB2F7F #7FAB2F #2F7FAB
tetradic
#AB2F7F #AB992F #2FAB5B #2F41AB
square
#AB2F7F #AB992F #2FAB5B #2F41AB
split-complementary
#AB2F7F #41AB2F #2FAB99
monochromatic
#4B1538 #7B225B #AB2F7F #CD4A9F #DA7AB8
Accessibility & contrast
On white
6.10
#AB2F7F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.44
#AB2F7F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2F7F
6.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2F7F | 1.00 | 6.10 | 3.44 | 6.10 |
| #FFFFFF | 6.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3E5581
Deuteranopia (green-blind)
#636A7C
Tritanopia (blue-blind)
#B72D53
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #ab2f7f; /* rgb */ color: rgb(171, 47, 127); /* oklch */ color: oklch(52.0% 0.179 345.5);
Tailwind
colors: {
custom: {
50: '#c873a4',
500: '#ab2f7f',
950: '#000000',
},
}SCSS
$custom: #ab2f7f; $custom-light: #c873a4; $custom-dark: #000000;
JSON
{
"hex": "#ab2f7f",
"rgb": {
"r": 171,
"g": 47,
"b": 127
},
"hsl": {
"h": 321.29,
"s": 56.881,
"l": 42.745
},
"oklch": {
"l": 0.51996,
"c": 0.17878,
"h": 345.5
},
"luminance": 0.12223
}Semantic roles & 50–950 ramp
primary
#AB2F7F
secondary
#73C38F
accent
#E07E48
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#14090F
muted
#827B7F