#AB3872#AB3872

#AB3872 is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.4% C 0.160 H 352.9°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#AB3872
RGBrgb(171, 56, 114)
HSLhsl(330, 51%, 45%)
HSVhsv(330, 67%, 67%)
CMYKcmyk(0%, 67.3%, 33.3%, 32.9%)
CIE-LABlab(42.31, 52.10, -7.68)
CIE-LCHlch(42.31, 52.67, 351.62°)
OKLaboklab(52.38% 0.1591 -0.0197)
OKLCHoklch(52.38% 0.16 352.9)
XYZxyz(21.2472, 12.7035, 17.2494)
Luminance0.1270 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB3872 #38AB71
analogous
#AB38AB #AB3872 #AB3839
triadic
#AB3872 #72AB38 #3872AB
tetradic
#AB3872 #ABAB38 #38AB71 #3839AB
square
#AB3872 #ABAB38 #38AB71 #3839AB
split-complementary
#AB3872 #39AB38 #38ABAB
monochromatic
#4F1A35 #7D2953 #AB3872 #C85891 #D786AF

Accessibility & contrast

On white

5.93
#AB3872 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AB3872 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB3872
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB3872#FFFFFF#000000##FFFFFF
##AB38721.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5774
Deuteranopia (green-blind)
#6A6C6F
Tritanopia (blue-blind)
#B83050
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab3872;
/* rgb */ color: rgb(171, 56, 114);
/* oklch */ color: oklch(52.4% 0.160 352.9);
Tailwind
colors: {
  custom: {
    50: '#c8779a',
    500: '#ab3872',
    950: '#000000',
  },
}
SCSS
$custom: #ab3872;
$custom-light: #c8779a;
$custom-dark: #000000;
JSON
{
  "hex": "#ab3872",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 114
  },
  "hsl": {
    "h": 329.739,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.52378,
    "c": 0.16031,
    "h": 352.9
  },
  "luminance": 0.12701
}

Semantic roles & 50–950 ramp

primary
#AB3872
secondary
#7DC19F
accent
#DA934E
background
#FCF7F9
surface
#F9EEF2
border
#D2C9CC
text
#14090E
muted
#827B7E

Preview Lab

Preview with #AB3872

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

Preview Lab → · Contrast checker → · Palette generator →

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