#AB4878#AB4878

#AB4878 is a mid, vivid pink. Relative luminance 0.146; OKLCH L 54.5% C 0.140 H 352.5°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#AB4878
RGBrgb(171, 72, 120)
HSLhsl(331, 41%, 48%)
HSVhsv(331, 58%, 67%)
CMYKcmyk(0%, 57.9%, 29.8%, 32.9%)
CIE-LABlab(45.15, 45.73, -7.12)
CIE-LCHlch(45.15, 46.28, 351.15°)
OKLaboklab(54.55% 0.1388 -0.0183)
OKLCHoklch(54.55% 0.14 352.5)
XYZxyz(22.5031, 14.6509, 19.4084)
Luminance0.1465 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4878 #48AB7B
analogous
#AB48AA #AB4878 #AB4948
triadic
#AB4878 #78AB48 #4878AB
tetradic
#AB4878 #AAAB48 #48AB7B #4948AB
square
#AB4878 #AAAB48 #48AB7B #4948AB
split-complementary
#AB4878 #48AB49 #48AAAB
monochromatic
#55243C #80365A #AB4878 #C26E97 #D499B6

Accessibility & contrast

On white

5.34
#AB4878 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#AB4878 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4878
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4878#FFFFFF#000000##FFFFFF
##AB48781.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#556079
Deuteranopia (green-blind)
#707176
Tritanopia (blue-blind)
#B7435B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ab4878;
/* rgb */ color: rgb(171, 72, 120);
/* oklch */ color: oklch(54.5% 0.140 352.5);
Tailwind
colors: {
  custom: {
    50: '#c77f9f',
    500: '#ab4878',
    950: '#000000',
  },
}
SCSS
$custom: #ab4878;
$custom-light: #c77f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4878",
  "rgb": {
    "r": 171,
    "g": 72,
    "b": 120
  },
  "hsl": {
    "h": 330.909,
    "s": 40.741,
    "l": 47.647
  },
  "oklch": {
    "l": 0.54549,
    "c": 0.13998,
    "h": 352.5
  },
  "luminance": 0.14649
}

Semantic roles & 50–950 ramp

primary
#AB4878
secondary
#8EC0A8
accent
#D19657
background
#FCF8F9
surface
#F9EFF2
border
#D2CACC
text
#130A0E
muted
#827C7E

Preview Lab

Preview with #AB4878

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

Preview Lab → · Contrast checker → · Palette generator →

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