#AB2D7C#AB2D7C

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

Color values

HEX#AB2D7C
RGBrgb(171, 45, 124)
HSLhsl(322, 58%, 42%)
HSVhsv(322, 74%, 67%)
CMYKcmyk(0%, 73.7%, 27.5%, 32.9%)
CIE-LABlab(41.20, 57.48, -15.54)
CIE-LCHlch(41.20, 59.54, 344.87°)
OKLaboklab(51.69% 0.1746 -0.0411)
OKLCHoklch(51.69% 0.179 346.8)
XYZxyz(21.3720, 11.9923, 20.2541)
Luminance0.1199 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2D7C #2DAB5C
analogous
#9B2DAB #AB2D7C #AB2D3D
triadic
#AB2D7C #7CAB2D #2D7CAB
tetradic
#AB2D7C #AB9B2D #2DAB5C #2D3DAB
square
#AB2D7C #AB9B2D #2DAB5C #2D3DAB
split-complementary
#AB2D7C #3DAB2D #2DAB9B
monochromatic
#4A1436 #7B2059 #AB2D7C #CE479C #DB77B6

Accessibility & contrast

On white

6.18
#AB2D7C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2D7C
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2D7C#FFFFFF#000000##FFFFFF
##AB2D7C1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E537E
Deuteranopia (green-blind)
#646979
Tritanopia (blue-blind)
#B72951
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2d7c;
/* rgb */ color: rgb(171, 45, 124);
/* oklch */ color: oklch(51.7% 0.179 346.8);
Tailwind
colors: {
  custom: {
    50: '#c872a2',
    500: '#ab2d7c',
    950: '#000000',
  },
}
SCSS
$custom: #ab2d7c;
$custom-light: #c872a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2d7c",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 322.381,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51688,
    "c": 0.17938,
    "h": 346.8
  },
  "luminance": 0.1199
}

Semantic roles & 50–950 ramp

primary
#AB2D7C
secondary
#71C38F
accent
#E28046
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14090F
muted
#827B7E

Preview Lab

Preview with #AB2D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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