#AB2F8F#AB2F8F
#AB2F8F is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.7% C 0.189 H 338.5°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2F8F |
|---|---|
| RGB | rgb(171, 47, 143) |
| HSL | hsl(314, 57%, 43%) |
| HSV | hsv(314, 73%, 67%) |
| CMYK | cmyk(0%, 72.5%, 16.4%, 32.9%) |
| CIE-LAB | lab(42.27, 59.36, -25.54) |
| CIE-LCH | lch(42.27, 64.62, 336.72°) |
| OKLab | oklab(52.73% 0.1759 -0.0692) |
| OKLCH | oklch(52.73% 0.189 338.5) |
| XYZ | xyz(22.7695, 12.6763, 27.2289) |
| Luminance | 0.1267 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Ugly Purple
#A442A0
ΔE00 4.60
Warm Purple
#952E8F
ΔE00 4.88
Medium Purple
#9E43A2
ΔE00 5.58
Barney Purple
#A00498
ΔE00 6.17
Mediumvioletred
#C71585
ΔE00 6.19
Light Eggplant
#894585
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2F8F #2FAB4B
analogous
#892FAB #AB2F8F #AB2F51
triadic
#AB2F8F #8FAB2F #2F8FAB
tetradic
#AB2F8F #AB892F #2FAB4B #2F51AB
square
#AB2F8F #AB892F #2FAB4B #2F51AB
split-complementary
#AB2F8F #51AB2F #2FAB89
monochromatic
#4B153F #7B2267 #AB2F8F #CD4AB0 #DA7AC5
Accessibility & contrast
On white
5.94
#AB2F8F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#AB2F8F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2F8F
5.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2F8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2F8F | 1.00 | 5.94 | 3.53 | 5.94 |
| #FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#355792
Deuteranopia (green-blind)
#5E6B8C
Tritanopia (blue-blind)
#B5355B
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #ab2f8f; /* rgb */ color: rgb(171, 47, 143); /* oklch */ color: oklch(52.7% 0.189 338.5);
Tailwind
colors: {
custom: {
50: '#c873b0',
500: '#ab2f8f',
950: '#000000',
},
}SCSS
$custom: #ab2f8f; $custom-light: #c873b0; $custom-dark: #000000;
JSON
{
"hex": "#ab2f8f",
"rgb": {
"r": 171,
"g": 47,
"b": 143
},
"hsl": {
"h": 313.548,
"s": 56.881,
"l": 42.745
},
"oklch": {
"l": 0.52733,
"c": 0.18902,
"h": 338.5
},
"luminance": 0.12674
}Semantic roles & 50–950 ramp
primary
#AB2F8F
secondary
#73C385
accent
#E06A48
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F