#AB2D87#AB2D87

#AB2D87 is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.2% C 0.186 H 341.8°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#AB2D87
RGBrgb(171, 45, 135)
HSLhsl(317, 58%, 42%)
HSVhsv(317, 74%, 67%)
CMYKcmyk(0%, 73.7%, 21.1%, 32.9%)
CIE-LABlab(41.67, 58.93, -21.59)
CIE-LCHlch(41.67, 62.76, 339.87°)
OKLaboklab(52.18% 0.1768 -0.058)
OKLCHoklch(52.18% 0.186 341.8)
XYZxyz(22.1069, 12.2862, 24.1242)
Luminance0.1228 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2D87 #2DAB51
analogous
#902DAB #AB2D87 #AB2D48
triadic
#AB2D87 #87AB2D #2D87AB
tetradic
#AB2D87 #AB902D #2DAB51 #2D48AB
square
#AB2D87 #AB902D #2DAB51 #2D48AB
split-complementary
#AB2D87 #48AB2D #2DAB90
monochromatic
#4A143A #7B2061 #AB2D87 #CE47A8 #DB77BF

Accessibility & contrast

On white

6.07
#AB2D87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#AB2D87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2D87
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2D87#FFFFFF#000000##FFFFFF
##AB2D871.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385589
Deuteranopia (green-blind)
#606A84
Tritanopia (blue-blind)
#B62F56
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2d87;
/* rgb */ color: rgb(171, 45, 135);
/* oklch */ color: oklch(52.2% 0.186 341.8);
Tailwind
colors: {
  custom: {
    50: '#c872aa',
    500: '#ab2d87',
    950: '#000000',
  },
}
SCSS
$custom: #ab2d87;
$custom-light: #c872aa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2d87",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 317.143,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52177,
    "c": 0.18604,
    "h": 341.8
  },
  "luminance": 0.12284
}

Semantic roles & 50–950 ramp

primary
#AB2D87
secondary
#71C388
accent
#E27346
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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