#AB287A#AB287A

#AB287A is a mid, vivid pink. Relative luminance 0.116; OKLCH L 51.2% C 0.184 H 347.3°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#AB287A
RGBrgb(171, 40, 122)
HSLhsl(322, 62%, 41%)
HSVhsv(322, 77%, 67%)
CMYKcmyk(0%, 76.6%, 28.7%, 32.9%)
CIE-LABlab(40.55, 58.86, -15.31)
CIE-LCHlch(40.55, 60.82, 345.42°)
OKLaboklab(51.18% 0.1793 -0.0404)
OKLCHoklch(51.18% 0.184 347.3)
XYZxyz(21.0673, 11.5830, 19.5349)
Luminance0.1158 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB287A #28AB59
analogous
#9B28AB #AB287A #AB2839
triadic
#AB287A #7AAB28 #287AAB
tetradic
#AB287A #AB9B28 #28AB59 #2839AB
square
#AB287A #AB9B28 #28AB59 #2839AB
split-complementary
#AB287A #39AB28 #28AB9B
monochromatic
#481133 #791C57 #AB287A #D23E9B #DE70B5

Accessibility & contrast

On white

6.33
#AB287A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#AB287A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB287A
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB287A#FFFFFF#000000##FFFFFF
##AB287A1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C517C
Deuteranopia (green-blind)
#636877
Tritanopia (blue-blind)
#B7234E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab287a;
/* rgb */ color: rgb(171, 40, 122);
/* oklch */ color: oklch(51.2% 0.184 347.3);
Tailwind
colors: {
  custom: {
    50: '#c870a0',
    500: '#ab287a',
    950: '#000000',
  },
}
SCSS
$custom: #ab287a;
$custom-light: #c870a0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab287a",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 322.443,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51182,
    "c": 0.18376,
    "h": 347.3
  },
  "luminance": 0.11581
}

Semantic roles & 50–950 ramp

primary
#AB287A
secondary
#6AC48C
accent
#E57F43
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080E
muted
#827B7E

Preview Lab

Preview with #AB287A

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

Preview Lab → · Contrast checker → · Palette generator →

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