#AB2787#AB2787

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

Color values

HEX#AB2787
RGBrgb(171, 39, 135)
HSLhsl(316, 63%, 41%)
HSVhsv(316, 77%, 67%)
CMYKcmyk(0%, 77.2%, 21.1%, 32.9%)
CIE-LABlab(40.99, 60.84, -22.64)
CIE-LCHlch(40.99, 64.91, 339.59°)
OKLaboklab(51.69% 0.1826 -0.0609)
OKLCHoklch(51.69% 0.193 341.6)
XYZxyz(21.8940, 11.8605, 24.0533)
Luminance0.1186 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2787 #27AB4B
analogous
#8D27AB #AB2787 #AB2745
triadic
#AB2787 #87AB27 #2787AB
tetradic
#AB2787 #AB8D27 #27AB4B #2745AB
square
#AB2787 #AB8D27 #27AB4B #2745AB
split-complementary
#AB2787 #45AB27 #27AB8D
monochromatic
#471038 #791C60 #AB2787 #D33DAA #DE6EC0

Accessibility & contrast

On white

6.23
#AB2787 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#AB2787 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2787
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2787#FFFFFF#000000##FFFFFF
##AB27871.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab2787;
/* rgb */ color: rgb(171, 39, 135);
/* oklch */ color: oklch(51.7% 0.193 341.6);
Tailwind
colors: {
  custom: {
    50: '#c870aa',
    500: '#ab2787',
    950: '#000000',
  },
}
SCSS
$custom: #ab2787;
$custom-light: #c870aa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2787",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 316.364,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51688,
    "c": 0.1925,
    "h": 341.6
  },
  "luminance": 0.11858
}

Semantic roles & 50–950 ramp

primary
#AB2787
secondary
#69C582
accent
#E66F42
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB2787

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

Preview Lab → · Contrast checker → · Palette generator →

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