#AB2D7F#AB2D7F

#AB2D7F is a mid, vivid pink. Relative luminance 0.121; OKLCH L 51.8% C 0.181 H 345.4°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#AB2D7F
RGBrgb(171, 45, 127)
HSLhsl(321, 58%, 42%)
HSVhsv(321, 74%, 67%)
CMYKcmyk(0%, 73.7%, 25.7%, 32.9%)
CIE-LABlab(41.33, 57.86, -17.21)
CIE-LCHlch(41.33, 60.37, 343.44°)
OKLaboklab(51.82% 0.1753 -0.0457)
OKLCHoklch(51.82% 0.181 345.4)
XYZxyz(21.5646, 12.0693, 21.2685)
Luminance0.1207 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2D7F #2DAB59
analogous
#982DAB #AB2D7F #AB2D40
triadic
#AB2D7F #7FAB2D #2D7FAB
tetradic
#AB2D7F #AB982D #2DAB59 #2D40AB
square
#AB2D7F #AB982D #2DAB59 #2D40AB
split-complementary
#AB2D7F #40AB2D #2DAB98
monochromatic
#4A1437 #7B205B #AB2D7F #CE479F #DB77B8

Accessibility & contrast

On white

6.15
#AB2D7F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#AB2D7F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2D7F
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2D7F#FFFFFF#000000##FFFFFF
##AB2D7F1.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5481
Deuteranopia (green-blind)
#63697C
Tritanopia (blue-blind)
#B72B52
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2d7f;
/* rgb */ color: rgb(171, 45, 127);
/* oklch */ color: oklch(51.8% 0.181 345.4);
Tailwind
colors: {
  custom: {
    50: '#c872a4',
    500: '#ab2d7f',
    950: '#000000',
  },
}
SCSS
$custom: #ab2d7f;
$custom-light: #c872a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2d7f",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 320.952,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51817,
    "c": 0.18112,
    "h": 345.4
  },
  "luminance": 0.12067
}

Semantic roles & 50–950 ramp

primary
#AB2D7F
secondary
#71C38D
accent
#E27C46
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB2D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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