#AB2B87#AB2B87

#AB2B87 is a mid, vivid pink. Relative luminance 0.121; OKLCH L 52.0% C 0.188 H 341.7°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#AB2B87
RGBrgb(171, 43, 135)
HSLhsl(317, 60%, 42%)
HSVhsv(317, 75%, 67%)
CMYKcmyk(0%, 74.9%, 21.1%, 32.9%)
CIE-LABlab(41.43, 59.59, -21.96)
CIE-LCHlch(41.43, 63.50, 339.77°)
OKLaboklab(52.01% 0.1788 -0.059)
OKLCHoklch(52.01% 0.188 341.7)
XYZxyz(22.0324, 12.1372, 24.0994)
Luminance0.1213 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2B87 #2BAB4F
analogous
#8F2BAB #AB2B87 #AB2B47
triadic
#AB2B87 #87AB2B #2B87AB
tetradic
#AB2B87 #AB8F2B #2BAB4F #2B47AB
square
#AB2B87 #AB8F2B #2BAB4F #2B47AB
split-complementary
#AB2B87 #47AB2B #2BAB8F
monochromatic
#49123A #7A1F60 #AB2B87 #D043A8 #DC74BF

Accessibility & contrast

On white

6.13
#AB2B87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#AB2B87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2B87
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2B87#FFFFFF#000000##FFFFFF
##AB2B871.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375489
Deuteranopia (green-blind)
#5F6984
Tritanopia (blue-blind)
#B62D56
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2b87;
/* rgb */ color: rgb(171, 43, 135);
/* oklch */ color: oklch(52.0% 0.188 341.7);
Tailwind
colors: {
  custom: {
    50: '#c871aa',
    500: '#ab2b87',
    950: '#000000',
  },
}
SCSS
$custom: #ab2b87;
$custom-light: #c871aa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2b87",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 316.875,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52007,
    "c": 0.18828,
    "h": 341.7
  },
  "luminance": 0.12135
}

Semantic roles & 50–950 ramp

primary
#AB2B87
secondary
#6EC486
accent
#E37145
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2B87

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#AB2B87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva