#AB387C#AB387C

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

Color values

HEX#AB387C
RGBrgb(171, 56, 124)
HSLhsl(325, 51%, 45%)
HSVhsv(325, 67%, 67%)
CMYKcmyk(0%, 67.3%, 27.5%, 32.9%)
CIE-LABlab(42.68, 53.36, -13.30)
CIE-LCHlch(42.68, 54.99, 346.01°)
OKLaboklab(52.77% 0.1619 -0.035)
OKLCHoklch(52.77% 0.166 347.8)
XYZxyz(21.8478, 12.9438, 20.4127)
Luminance0.1294 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB387C #38AB67
analogous
#A138AB #AB387C #AB3842
triadic
#AB387C #7CAB38 #387CAB
tetradic
#AB387C #ABA138 #38AB67 #3842AB
square
#AB387C #ABA138 #38AB67 #3842AB
split-complementary
#AB387C #42AB38 #38ABA1
monochromatic
#4F1A39 #7D295B #AB387C #C8589A #D786B6

Accessibility & contrast

On white

5.85
#AB387C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB387C
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB387C#FFFFFF#000000##FFFFFF
##AB387C1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#47587E
Deuteranopia (green-blind)
#686C79
Tritanopia (blue-blind)
#B73455
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab387c;
/* rgb */ color: rgb(171, 56, 124);
/* oklch */ color: oklch(52.8% 0.166 347.8);
Tailwind
colors: {
  custom: {
    50: '#c877a2',
    500: '#ab387c',
    950: '#000000',
  },
}
SCSS
$custom: #ab387c;
$custom-light: #c877a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab387c",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 124
  },
  "hsl": {
    "h": 324.522,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.52767,
    "c": 0.16559,
    "h": 347.8
  },
  "luminance": 0.12942
}

Semantic roles & 50–950 ramp

primary
#AB387C
secondary
#7DC199
accent
#DA874E
background
#FCF7F9
surface
#F9EEF2
border
#D2C9CC
text
#14090F
muted
#827B7E

Preview Lab

Preview with #AB387C

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

Preview Lab → · Contrast checker → · Palette generator →

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