#AB287E#AB287E

#AB287E is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.4% C 0.186 H 345.5°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#AB287E
RGBrgb(171, 40, 126)
HSLhsl(321, 62%, 41%)
HSVhsv(321, 77%, 67%)
CMYKcmyk(0%, 76.6%, 26.3%, 32.9%)
CIE-LABlab(40.71, 59.36, -17.53)
CIE-LCHlch(40.71, 61.90, 343.54°)
OKLaboklab(51.36% 0.1801 -0.0466)
OKLCHoklch(51.36% 0.186 345.5)
XYZxyz(21.3202, 11.6842, 20.8671)
Luminance0.1168 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB287E #28AB55
analogous
#9728AB #AB287E #AB283D
triadic
#AB287E #7EAB28 #287EAB
tetradic
#AB287E #AB9728 #28AB55 #283DAB
square
#AB287E #AB9728 #28AB55 #283DAB
split-complementary
#AB287E #3DAB28 #28AB97
monochromatic
#481135 #791C59 #AB287E #D23E9F #DE70B8

Accessibility & contrast

On white

6.29
#AB287E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#AB287E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB287E
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB287E#FFFFFF#000000##FFFFFF
##AB287E1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395280
Deuteranopia (green-blind)
#61687B
Tritanopia (blue-blind)
#B72550
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab287e;
/* rgb */ color: rgb(171, 40, 126);
/* oklch */ color: oklch(51.4% 0.186 345.5);
Tailwind
colors: {
  custom: {
    50: '#c870a3',
    500: '#ab287e',
    950: '#000000',
  },
}
SCSS
$custom: #ab287e;
$custom-light: #c870a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab287e",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 320.611,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51355,
    "c": 0.18603,
    "h": 345.5
  },
  "luminance": 0.11682
}

Semantic roles & 50–950 ramp

primary
#AB287E
secondary
#6AC489
accent
#E57A43
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#14080F
muted
#827B7F

Preview Lab

Preview with #AB287E

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

Preview Lab → · Contrast checker → · Palette generator →

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