#AB2B7F#AB2B7F

#AB2B7F is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.6% C 0.183 H 345.2°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#AB2B7F
RGBrgb(171, 43, 127)
HSLhsl(321, 60%, 42%)
HSVhsv(321, 75%, 67%)
CMYKcmyk(0%, 74.9%, 25.7%, 32.9%)
CIE-LABlab(41.09, 58.53, -17.57)
CIE-LCHlch(41.09, 61.11, 343.29°)
OKLaboklab(51.65% 0.1773 -0.0467)
OKLCHoklch(51.65% 0.183 345.2)
XYZxyz(21.4901, 11.9203, 21.2437)
Luminance0.1192 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2B7F #2BAB57
analogous
#972BAB #AB2B7F #AB2B3F
triadic
#AB2B7F #7FAB2B #2B7FAB
tetradic
#AB2B7F #AB972B #2BAB57 #2B3FAB
square
#AB2B7F #AB972B #2BAB57 #2B3FAB
split-complementary
#AB2B7F #3FAB2B #2BAB97
monochromatic
#491236 #7A1F5B #AB2B7F #D043A0 #DC74B8

Accessibility & contrast

On white

6.21
#AB2B7F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#AB2B7F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2B7F
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2B7F#FFFFFF#000000##FFFFFF
##AB2B7F1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5381
Deuteranopia (green-blind)
#62697C
Tritanopia (blue-blind)
#B72951
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2b7f;
/* rgb */ color: rgb(171, 43, 127);
/* oklch */ color: oklch(51.6% 0.183 345.2);
Tailwind
colors: {
  custom: {
    50: '#c871a4',
    500: '#ab2b7f',
    950: '#000000',
  },
}
SCSS
$custom: #ab2b7f;
$custom-light: #c871a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2b7f",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 127
  },
  "hsl": {
    "h": 320.625,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51645,
    "c": 0.18338,
    "h": 345.2
  },
  "luminance": 0.11918
}

Semantic roles & 50–950 ramp

primary
#AB2B7F
secondary
#6EC48C
accent
#E37B45
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#14080F
muted
#827B7F

Preview Lab

Preview with #AB2B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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