#AB2B7A#AB2B7A

#AB2B7A is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.4% C 0.181 H 347.5°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#AB2B7A
RGBrgb(171, 43, 122)
HSLhsl(323, 60%, 42%)
HSVhsv(323, 75%, 67%)
CMYKcmyk(0%, 74.9%, 28.7%, 32.9%)
CIE-LABlab(40.89, 57.90, -14.79)
CIE-LCHlch(40.89, 59.76, 345.67°)
OKLaboklab(51.43% 0.1763 -0.039)
OKLCHoklch(51.43% 0.181 347.5)
XYZxyz(21.1723, 11.7932, 19.5699)
Luminance0.1179 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2B7A #2BAB5C
analogous
#9C2BAB #AB2B7A #AB2B3A
triadic
#AB2B7A #7AAB2B #2B7AAB
tetradic
#AB2B7A #AB9C2B #2BAB5C #2B3AAB
square
#AB2B7A #AB9C2B #2BAB5C #2B3AAB
split-complementary
#AB2B7A #3AAB2B #2BAB9C
monochromatic
#491234 #7A1F57 #AB2B7A #D0439A #DC74B4

Accessibility & contrast

On white

6.25
#AB2B7A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#AB2B7A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2B7A
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2B7A#FFFFFF#000000##FFFFFF
##AB2B7A1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E527C
Deuteranopia (green-blind)
#636877
Tritanopia (blue-blind)
#B7264F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab2b7a;
/* rgb */ color: rgb(171, 43, 122);
/* oklch */ color: oklch(51.4% 0.181 347.5);
Tailwind
colors: {
  custom: {
    50: '#c871a0',
    500: '#ab2b7a',
    950: '#000000',
  },
}
SCSS
$custom: #ab2b7a;
$custom-light: #c871a0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2b7a",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 122
  },
  "hsl": {
    "h": 322.969,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.5143,
    "c": 0.18052,
    "h": 347.5
  },
  "luminance": 0.11791
}

Semantic roles & 50–950 ramp

primary
#AB2B7A
secondary
#6EC48F
accent
#E38145
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080E
muted
#827B7E

Preview Lab

Preview with #AB2B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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