#AB2887#AB2887

#AB2887 is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.8% C 0.191 H 341.6°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#AB2887
RGBrgb(171, 40, 135)
HSLhsl(316, 62%, 41%)
HSVhsv(316, 77%, 67%)
CMYKcmyk(0%, 76.6%, 21.1%, 32.9%)
CIE-LABlab(41.10, 60.54, -22.47)
CIE-LCHlch(41.10, 64.57, 339.63°)
OKLaboklab(51.77% 0.1817 -0.0604)
OKLCHoklch(51.77% 0.191 341.6)
XYZxyz(21.9273, 11.9270, 24.0643)
Luminance0.1192 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2887 #28AB4C
analogous
#8E28AB #AB2887 #AB2845
triadic
#AB2887 #87AB28 #2887AB
tetradic
#AB2887 #AB8E28 #28AB4C #2845AB
square
#AB2887 #AB8E28 #28AB4C #2845AB
split-complementary
#AB2887 #45AB28 #28AB8E
monochromatic
#481139 #791C60 #AB2887 #D23EA9 #DE70BF

Accessibility & contrast

On white

6.20
#AB2887 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#AB2887 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2887
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2887#FFFFFF#000000##FFFFFF
##AB28871.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34538A
Deuteranopia (green-blind)
#5E6884
Tritanopia (blue-blind)
#B62A55
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2887;
/* rgb */ color: rgb(171, 40, 135);
/* oklch */ color: oklch(51.8% 0.191 341.6);
Tailwind
colors: {
  custom: {
    50: '#c870aa',
    500: '#ab2887',
    950: '#000000',
  },
}
SCSS
$custom: #ab2887;
$custom-light: #c870aa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2887",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 316.489,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51765,
    "c": 0.19147,
    "h": 341.6
  },
  "luminance": 0.11925
}

Semantic roles & 50–950 ramp

primary
#AB2887
secondary
#6AC483
accent
#E56F43
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB2887

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

Preview Lab → · Contrast checker → · Palette generator →

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