#AB4872#AB4872

#AB4872 is a mid, vivid pink. Relative luminance 0.145; OKLCH L 54.3% C 0.137 H 356.1°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#AB4872
RGBrgb(171, 72, 114)
HSLhsl(335, 41%, 48%)
HSVhsv(335, 58%, 67%)
CMYKcmyk(0%, 57.9%, 33.3%, 32.9%)
CIE-LABlab(44.96, 44.95, -3.75)
CIE-LCHlch(44.96, 45.11, 355.23°)
OKLaboklab(54.34% 0.1368 -0.0093)
OKLCHoklch(54.34% 0.137 356.1)
XYZxyz(22.1503, 14.5098, 17.5505)
Luminance0.1451 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4872 #48AB81
analogous
#AB48A4 #AB4872 #AB4F48
triadic
#AB4872 #72AB48 #4872AB
tetradic
#AB4872 #A4AB48 #48AB81 #4F48AB
square
#AB4872 #A4AB48 #48AB81 #4F48AB
split-complementary
#AB4872 #48AB4F #48A4AB
monochromatic
#552439 #803655 #AB4872 #C26E92 #D499B2

Accessibility & contrast

On white

5.38
#AB4872 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#AB4872 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4872
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4872#FFFFFF#000000##FFFFFF
##AB48721.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#575F73
Deuteranopia (green-blind)
#727170
Tritanopia (blue-blind)
#B74158
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ab4872;
/* rgb */ color: rgb(171, 72, 114);
/* oklch */ color: oklch(54.3% 0.137 356.1);
Tailwind
colors: {
  custom: {
    50: '#c77f9a',
    500: '#ab4872',
    950: '#000000',
  },
}
SCSS
$custom: #ab4872;
$custom-light: #c77f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4872",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 114
  },
  "hsl": {
    "h": 334.545,
    "s": 40.741,
    "l": 47.647
  },
  "oklch": {
    "l": 0.54338,
    "c": 0.13715,
    "h": 356.1
  },
  "luminance": 0.14508
}

Semantic roles & 50–950 ramp

primary
#AB4872
secondary
#8EC0AB
accent
#D19D57
background
#FCF8F9
surface
#F9EFF2
border
#D2CACC
text
#130A0E
muted
#827C7E

Preview Lab

Preview with #AB4872

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

Preview Lab → · Contrast checker → · Palette generator →

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