#AB2C7A#AB2C7A

#AB2C7A is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.5% C 0.179 H 347.6°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#AB2C7A
RGBrgb(171, 44, 122)
HSLhsl(323, 59%, 42%)
HSVhsv(323, 74%, 67%)
CMYKcmyk(0%, 74.3%, 28.7%, 32.9%)
CIE-LABlab(41.00, 57.57, -14.61)
CIE-LCHlch(41.00, 59.39, 345.76°)
OKLaboklab(51.52% 0.1752 -0.0385)
OKLCHoklch(51.52% 0.179 347.6)
XYZxyz(21.2091, 11.8668, 19.5822)
Luminance0.1186 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2C7A #2CAB5D
analogous
#9D2CAB #AB2C7A #AB2C3A
triadic
#AB2C7A #7AAB2C #2C7AAB
tetradic
#AB2C7A #AB9D2C #2CAB5D #2C3AAB
square
#AB2C7A #AB9D2C #2CAB5D #2C3AAB
split-complementary
#AB2C7A #3AAB2C #2CAB9D
monochromatic
#4A1335 #7A1F57 #AB2C7A #CF459A #DC76B4

Accessibility & contrast

On white

6.23
#AB2C7A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#AB2C7A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2C7A
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2C7A#FFFFFF#000000##FFFFFF
##AB2C7A1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E537C
Deuteranopia (green-blind)
#646977
Tritanopia (blue-blind)
#B7274F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2c7a;
/* rgb */ color: rgb(171, 44, 122);
/* oklch */ color: oklch(51.5% 0.179 347.6);
Tailwind
colors: {
  custom: {
    50: '#c871a0',
    500: '#ab2c7a',
    950: '#000000',
  },
}
SCSS
$custom: #ab2c7a;
$custom-light: #c871a0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2c7a",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 122
  },
  "hsl": {
    "h": 323.15,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51516,
    "c": 0.1794,
    "h": 347.6
  },
  "luminance": 0.11864
}

Semantic roles & 50–950 ramp

primary
#AB2C7A
secondary
#6FC390
accent
#E28246
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080E
muted
#827B7E

Preview Lab

Preview with #AB2C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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