#AB2D7D#AB2D7D

#AB2D7D is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.7% C 0.180 H 346.3°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#AB2D7D
RGBrgb(171, 45, 125)
HSLhsl(322, 58%, 42%)
HSVhsv(322, 74%, 67%)
CMYKcmyk(0%, 73.7%, 26.9%, 32.9%)
CIE-LABlab(41.24, 57.60, -16.10)
CIE-LCHlch(41.24, 59.81, 344.39°)
OKLaboklab(51.73% 0.1748 -0.0426)
OKLCHoklch(51.73% 0.18 346.3)
XYZxyz(21.4356, 12.0177, 20.5888)
Luminance0.1202 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2D7D #2DAB5B
analogous
#9A2DAB #AB2D7D #AB2D3E
triadic
#AB2D7D #7DAB2D #2D7DAB
tetradic
#AB2D7D #AB9A2D #2DAB5B #2D3EAB
square
#AB2D7D #AB9A2D #2DAB5B #2D3EAB
split-complementary
#AB2D7D #3EAB2D #2DAB9A
monochromatic
#4A1436 #7B205A #AB2D7D #CE479D #DB77B7

Accessibility & contrast

On white

6.17
#AB2D7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#AB2D7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2D7D
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2D7D#FFFFFF#000000##FFFFFF
##AB2D7D1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E547F
Deuteranopia (green-blind)
#63697A
Tritanopia (blue-blind)
#B72A51
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2d7d;
/* rgb */ color: rgb(171, 45, 125);
/* oklch */ color: oklch(51.7% 0.180 346.3);
Tailwind
colors: {
  custom: {
    50: '#c872a2',
    500: '#ab2d7d',
    950: '#000000',
  },
}
SCSS
$custom: #ab2d7d;
$custom-light: #c872a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2d7d",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 125
  },
  "hsl": {
    "h": 321.905,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51731,
    "c": 0.17995,
    "h": 346.3
  },
  "luminance": 0.12015
}

Semantic roles & 50–950 ramp

primary
#AB2D7D
secondary
#71C38F
accent
#E27F46
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB2D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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