#AB287D#AB287D

#AB287D is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.3% C 0.185 H 345.9°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#AB287D
RGBrgb(171, 40, 125)
HSLhsl(321, 62%, 41%)
HSVhsv(321, 77%, 67%)
CMYKcmyk(0%, 76.6%, 26.9%, 32.9%)
CIE-LABlab(40.67, 59.24, -16.98)
CIE-LCHlch(40.67, 61.62, 344.01°)
OKLaboklab(51.31% 0.1799 -0.045)
OKLCHoklch(51.31% 0.185 345.9)
XYZxyz(21.2560, 11.6585, 20.5290)
Luminance0.1166 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB287D #28AB56
analogous
#9828AB #AB287D #AB283C
triadic
#AB287D #7DAB28 #287DAB
tetradic
#AB287D #AB9828 #28AB56 #283CAB
square
#AB287D #AB9828 #28AB56 #283CAB
split-complementary
#AB287D #3CAB28 #28AB98
monochromatic
#481134 #791C59 #AB287D #D23E9E #DE70B7

Accessibility & contrast

On white

6.30
#AB287D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#AB287D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB287D
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB287D#FFFFFF#000000##FFFFFF
##AB287D1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A527F
Deuteranopia (green-blind)
#62687A
Tritanopia (blue-blind)
#B7254F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab287d;
/* rgb */ color: rgb(171, 40, 125);
/* oklch */ color: oklch(51.3% 0.185 345.9);
Tailwind
colors: {
  custom: {
    50: '#c870a2',
    500: '#ab287d',
    950: '#000000',
  },
}
SCSS
$custom: #ab287d;
$custom-light: #c870a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab287d",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 321.069,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51311,
    "c": 0.18545,
    "h": 345.9
  },
  "luminance": 0.11656
}

Semantic roles & 50–950 ramp

primary
#AB287D
secondary
#6AC48A
accent
#E57C43
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#14080F
muted
#827B7F

Preview Lab

Preview with #AB287D

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

Preview Lab → · Contrast checker → · Palette generator →

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