#AB2872#AB2872

#AB2872 is a mid, vivid pink. Relative luminance 0.114; OKLCH L 50.9% C 0.180 H 351.0°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#AB2872
RGBrgb(171, 40, 114)
HSLhsl(326, 62%, 41%)
HSVhsv(326, 77%, 67%)
CMYKcmyk(0%, 76.6%, 33.3%, 32.9%)
CIE-LABlab(40.23, 57.91, -10.80)
CIE-LCHlch(40.23, 58.91, 349.43°)
OKLaboklab(50.85% 0.1774 -0.028)
OKLCHoklch(50.85% 0.18 351)
XYZxyz(20.5918, 11.3929, 17.0310)
Luminance0.1139 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2872 #28AB61
analogous
#A328AB #AB2872 #AB2831
triadic
#AB2872 #72AB28 #2872AB
tetradic
#AB2872 #ABA328 #28AB61 #2831AB
square
#AB2872 #ABA328 #28AB61 #2831AB
split-complementary
#AB2872 #31AB28 #28ABA3
monochromatic
#481130 #791C51 #AB2872 #D23E92 #DE70AE

Accessibility & contrast

On white

6.41
#AB2872 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#AB2872 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2872
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2872#FFFFFF#000000##FFFFFF
##AB28721.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5074
Deuteranopia (green-blind)
#65676F
Tritanopia (blue-blind)
#B81E4A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #ab2872;
/* rgb */ color: rgb(171, 40, 114);
/* oklch */ color: oklch(50.9% 0.180 351.0);
Tailwind
colors: {
  custom: {
    50: '#c96f9a',
    500: '#ab2872',
    950: '#000000',
  },
}
SCSS
$custom: #ab2872;
$custom-light: #c96f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2872",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 326.107,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.50854,
    "c": 0.17955,
    "h": 351
  },
  "luminance": 0.1139
}

Semantic roles & 50–950 ramp

primary
#AB2872
secondary
#6AC492
accent
#E58943
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080E
muted
#827B7E

Preview Lab

Preview with #AB2872

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

Preview Lab → · Contrast checker → · Palette generator →

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