#AB2A71#AB2A71

#AB2A71 is a mid, vivid pink. Relative luminance 0.115; OKLCH L 51.0% C 0.177 H 351.7°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#AB2A71
RGBrgb(171, 42, 113)
HSLhsl(327, 61%, 42%)
HSVhsv(327, 75%, 67%)
CMYKcmyk(0%, 75.4%, 33.9%, 32.9%)
CIE-LABlab(40.42, 57.15, -9.89)
CIE-LCHlch(40.42, 58.00, 350.18°)
OKLaboklab(50.98% 0.1751 -0.0256)
OKLCHoklch(50.98% 0.177 351.7)
XYZxyz(20.6044, 11.5086, 16.7559)
Luminance0.1151 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A71 #2AAB64
analogous
#A52AAB #AB2A71 #AB2A31
triadic
#AB2A71 #71AB2A #2A71AB
tetradic
#AB2A71 #ABA52A #2AAB64 #2A31AB
square
#AB2A71 #ABA52A #2AAB64 #2A31AB
split-complementary
#AB2A71 #31AB2A #2AABA5
monochromatic
#491230 #7A1E51 #AB2A71 #D14290 #DD73AD

Accessibility & contrast

On white

6.36
#AB2A71 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#AB2A71 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2A71
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A71#FFFFFF#000000##FFFFFF
##AB2A711.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415073
Deuteranopia (green-blind)
#66686E
Tritanopia (blue-blind)
#B81F4A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #ab2a71;
/* rgb */ color: rgb(171, 42, 113);
/* oklch */ color: oklch(51.0% 0.177 351.7);
Tailwind
colors: {
  custom: {
    50: '#c97099',
    500: '#ab2a71',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a71;
$custom-light: #c97099;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a71",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 326.977,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.5098,
    "c": 0.17692,
    "h": 351.7
  },
  "luminance": 0.11506
}

Semantic roles & 50–950 ramp

primary
#AB2A71
secondary
#6DC494
accent
#E48C44
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080E
muted
#827B7E

Preview Lab

Preview with #AB2A71

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

Preview Lab → · Contrast checker → · Palette generator →

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