#AB287F#AB287F

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

Color values

HEX#AB287F
RGBrgb(171, 40, 127)
HSLhsl(320, 62%, 41%)
HSVhsv(320, 77%, 67%)
CMYKcmyk(0%, 76.6%, 25.7%, 32.9%)
CIE-LABlab(40.75, 59.49, -18.09)
CIE-LCHlch(40.75, 62.18, 343.09°)
OKLaboklab(51.4% 0.1803 -0.0481)
OKLCHoklch(51.4% 0.187 345.1)
XYZxyz(21.3851, 11.7102, 21.2086)
Luminance0.1171 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB287F #28AB54
analogous
#9628AB #AB287F #AB283E
triadic
#AB287F #7FAB28 #287FAB
tetradic
#AB287F #AB9628 #28AB54 #283EAB
square
#AB287F #AB9628 #28AB54 #283EAB
split-complementary
#AB287F #3EAB28 #28AB96
monochromatic
#481135 #791C5A #AB287F #D23EA0 #DE70B9

Accessibility & contrast

On white

6.28
#AB287F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB287F
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB287F#FFFFFF#000000##FFFFFF
##AB287F1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395281
Deuteranopia (green-blind)
#61687C
Tritanopia (blue-blind)
#B72650
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab287f;
/* rgb */ color: rgb(171, 40, 127);
/* oklch */ color: oklch(51.4% 0.187 345.1);
Tailwind
colors: {
  custom: {
    50: '#c870a4',
    500: '#ab287f',
    950: '#000000',
  },
}
SCSS
$custom: #ab287f;
$custom-light: #c870a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab287f",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 320.153,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51399,
    "c": 0.1866,
    "h": 345.1
  },
  "luminance": 0.11708
}

Semantic roles & 50–950 ramp

primary
#AB287F
secondary
#6AC489
accent
#E57943
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#14080F
muted
#827B7F

Preview Lab

Preview with #AB287F

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

Preview Lab → · Contrast checker → · Palette generator →

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