#AB2C87#AB2C87

#AB2C87 is a mid, vivid pink. Relative luminance 0.122; OKLCH L 52.1% C 0.187 H 341.8°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#AB2C87
RGBrgb(171, 44, 135)
HSLhsl(317, 59%, 42%)
HSVhsv(317, 74%, 67%)
CMYKcmyk(0%, 74.3%, 21.1%, 32.9%)
CIE-LABlab(41.55, 59.26, -21.78)
CIE-LCHlch(41.55, 63.13, 339.82°)
OKLaboklab(52.09% 0.1778 -0.0585)
OKLCHoklch(52.09% 0.187 341.8)
XYZxyz(22.0692, 12.2108, 24.1116)
Luminance0.1221 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2C87 #2CAB50
analogous
#902CAB #AB2C87 #AB2C47
triadic
#AB2C87 #87AB2C #2C87AB
tetradic
#AB2C87 #AB902C #2CAB50 #2C47AB
square
#AB2C87 #AB902C #2CAB50 #2C47AB
split-complementary
#AB2C87 #47AB2C #2CAB90
monochromatic
#4A133A #7A1F61 #AB2C87 #CF45A8 #DC76BF

Accessibility & contrast

On white

6.10
#AB2C87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#AB2C87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2C87
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2C87#FFFFFF#000000##FFFFFF
##AB2C871.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385589
Deuteranopia (green-blind)
#606984
Tritanopia (blue-blind)
#B62E56
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2c87;
/* rgb */ color: rgb(171, 44, 135);
/* oklch */ color: oklch(52.1% 0.187 341.8);
Tailwind
colors: {
  custom: {
    50: '#c872aa',
    500: '#ab2c87',
    950: '#000000',
  },
}
SCSS
$custom: #ab2c87;
$custom-light: #c872aa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2c87",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 317.008,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52091,
    "c": 0.18716,
    "h": 341.8
  },
  "luminance": 0.12209
}

Semantic roles & 50–950 ramp

primary
#AB2C87
secondary
#6FC387
accent
#E27246
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2C87

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

Preview Lab → · Contrast checker → · Palette generator →

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