#AB287B#AB287B

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

Color values

HEX#AB287B
RGBrgb(171, 40, 123)
HSLhsl(322, 62%, 41%)
HSVhsv(322, 77%, 67%)
CMYKcmyk(0%, 76.6%, 28.1%, 32.9%)
CIE-LABlab(40.59, 58.99, -15.87)
CIE-LCHlch(40.59, 61.08, 344.94°)
OKLaboklab(51.23% 0.1795 -0.042)
OKLCHoklch(51.23% 0.184 346.8)
XYZxyz(21.1295, 11.6079, 19.8629)
Luminance0.1161 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB287B #28AB58
analogous
#9A28AB #AB287B #AB283A
triadic
#AB287B #7BAB28 #287BAB
tetradic
#AB287B #AB9A28 #28AB58 #283AAB
square
#AB287B #AB9A28 #28AB58 #283AAB
split-complementary
#AB287B #3AAB28 #28AB9A
monochromatic
#481134 #791C57 #AB287B #D23E9C #DE70B5

Accessibility & contrast

On white

6.32
#AB287B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB287B
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB287B#FFFFFF#000000##FFFFFF
##AB287B1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab287b;
/* rgb */ color: rgb(171, 40, 123);
/* oklch */ color: oklch(51.2% 0.184 346.8);
Tailwind
colors: {
  custom: {
    50: '#c870a1',
    500: '#ab287b',
    950: '#000000',
  },
}
SCSS
$custom: #ab287b;
$custom-light: #c870a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab287b",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 123
  },
  "hsl": {
    "h": 321.985,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51225,
    "c": 0.18432,
    "h": 346.8
  },
  "luminance": 0.11606
}

Semantic roles & 50–950 ramp

primary
#AB287B
secondary
#6AC48B
accent
#E57E43
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080F
muted
#827B7E

Preview Lab

Preview with #AB287B

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

Preview Lab → · Contrast checker → · Palette generator →

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