#AB387D#AB387D

#AB387D is a mid, vivid pink. Relative luminance 0.130; OKLCH L 52.8% C 0.166 H 347.3°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#AB387D
RGBrgb(171, 56, 125)
HSLhsl(324, 51%, 45%)
HSVhsv(324, 67%, 67%)
CMYKcmyk(0%, 67.3%, 26.9%, 32.9%)
CIE-LABlab(42.72, 53.49, -13.85)
CIE-LCHlch(42.72, 55.26, 345.48°)
OKLaboklab(52.81% 0.1621 -0.0365)
OKLCHoklch(52.81% 0.166 347.3)
XYZxyz(21.9114, 12.9692, 20.7474)
Luminance0.1297 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB387D #38AB66
analogous
#A038AB #AB387D #AB3844
triadic
#AB387D #7DAB38 #387DAB
tetradic
#AB387D #ABA038 #38AB66 #3844AB
square
#AB387D #ABA038 #38AB66 #3844AB
split-complementary
#AB387D #44AB38 #38ABA0
monochromatic
#4F1A3A #7D295B #AB387D #C8589B #D786B7

Accessibility & contrast

On white

5.84
#AB387D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AB387D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB387D
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB387D#FFFFFF#000000##FFFFFF
##AB387D1.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#46587F
Deuteranopia (green-blind)
#676C7A
Tritanopia (blue-blind)
#B73555
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab387d;
/* rgb */ color: rgb(171, 56, 125);
/* oklch */ color: oklch(52.8% 0.166 347.3);
Tailwind
colors: {
  custom: {
    50: '#c877a2',
    500: '#ab387d',
    950: '#000000',
  },
}
SCSS
$custom: #ab387d;
$custom-light: #c877a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab387d",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 125
  },
  "hsl": {
    "h": 324,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.52808,
    "c": 0.16616,
    "h": 347.3
  },
  "luminance": 0.12967
}

Semantic roles & 50–950 ramp

primary
#AB387D
secondary
#7DC199
accent
#DA864E
background
#FCF7FA
surface
#F9EEF3
border
#D2C9CD
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB387D

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

Preview Lab → · Contrast checker → · Palette generator →

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