#AB387E#AB387E

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

Color values

HEX#AB387E
RGBrgb(171, 56, 126)
HSLhsl(323, 51%, 45%)
HSVhsv(323, 67%, 67%)
CMYKcmyk(0%, 67.3%, 26.3%, 32.9%)
CIE-LABlab(42.76, 53.62, -14.41)
CIE-LCHlch(42.76, 55.53, 344.96°)
OKLaboklab(52.85% 0.1624 -0.038)
OKLCHoklch(52.85% 0.167 346.8)
XYZxyz(21.9756, 12.9949, 21.0856)
Luminance0.1299 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB387E #38AB65
analogous
#9F38AB #AB387E #AB3845
triadic
#AB387E #7EAB38 #387EAB
tetradic
#AB387E #AB9F38 #38AB65 #3845AB
square
#AB387E #AB9F38 #38AB65 #3845AB
split-complementary
#AB387E #45AB38 #38AB9F
monochromatic
#4F1A3A #7D295C #AB387E #C8589C #D786B8

Accessibility & contrast

On white

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

On black

3.60
#AB387E on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AB387E#FFFFFF#000000##FFFFFF
##AB387E1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465880
Deuteranopia (green-blind)
#676C7B
Tritanopia (blue-blind)
#B73556
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab387e;
/* rgb */ color: rgb(171, 56, 126);
/* oklch */ color: oklch(52.8% 0.167 346.8);
Tailwind
colors: {
  custom: {
    50: '#c877a3',
    500: '#ab387e',
    950: '#000000',
  },
}
SCSS
$custom: #ab387e;
$custom-light: #c877a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab387e",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 126
  },
  "hsl": {
    "h": 323.478,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.52849,
    "c": 0.16675,
    "h": 346.8
  },
  "luminance": 0.12993
}

Semantic roles & 50–950 ramp

primary
#AB387E
secondary
#7DC198
accent
#DA854E
background
#FCF7FA
surface
#F9EEF3
border
#D2C9CD
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB387E

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

Preview Lab → · Contrast checker → · Palette generator →

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