#AB2C8A#AB2C8A

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

Color values

HEX#AB2C8A
RGBrgb(171, 44, 138)
HSLhsl(316, 59%, 42%)
HSVhsv(316, 74%, 67%)
CMYKcmyk(0%, 74.3%, 19.3%, 32.9%)
CIE-LABlab(41.68, 59.67, -23.40)
CIE-LCHlch(41.68, 64.10, 338.58°)
OKLaboklab(52.23% 0.1783 -0.0631)
OKLCHoklch(52.23% 0.189 340.5)
XYZxyz(22.2834, 12.2965, 25.2397)
Luminance0.1229 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2C8A #2CAB4D
analogous
#8D2CAB #AB2C8A #AB2C4A
triadic
#AB2C8A #8AAB2C #2C8AAB
tetradic
#AB2C8A #AB8D2C #2CAB4D #2C4AAB
square
#AB2C8A #AB8D2C #2CAB4D #2C4AAB
split-complementary
#AB2C8A #4AAB2C #2CAB8D
monochromatic
#4A133B #7A1F63 #AB2C8A #CF45AB #DC76C1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB2C8A#FFFFFF#000000##FFFFFF
##AB2C8A1.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)
#36558D
Deuteranopia (green-blind)
#5F6A87
Tritanopia (blue-blind)
#B53058
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2c8a;
/* rgb */ color: rgb(171, 44, 138);
/* oklch */ color: oklch(52.2% 0.189 340.5);
Tailwind
colors: {
  custom: {
    50: '#c872ac',
    500: '#ab2c8a',
    950: '#000000',
  },
}
SCSS
$custom: #ab2c8a;
$custom-light: #c872ac;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2c8a",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 315.591,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52232,
    "c": 0.18909,
    "h": 340.5
  },
  "luminance": 0.12294
}

Semantic roles & 50–950 ramp

primary
#AB2C8A
secondary
#6FC385
accent
#E26E46
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AB2C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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