#AB2886#AB2886

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

Color values

HEX#AB2886
RGBrgb(171, 40, 134)
HSLhsl(317, 62%, 41%)
HSVhsv(317, 77%, 67%)
CMYKcmyk(0%, 76.6%, 21.6%, 32.9%)
CIE-LABlab(41.06, 60.40, -21.93)
CIE-LCHlch(41.06, 64.26, 340.05°)
OKLaboklab(51.72% 0.1815 -0.0589)
OKLCHoklch(51.72% 0.191 342)
XYZxyz(21.8572, 11.8990, 23.6953)
Luminance0.1190 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2886 #28AB4D
analogous
#8F28AB #AB2886 #AB2844
triadic
#AB2886 #86AB28 #2886AB
tetradic
#AB2886 #AB8F28 #28AB4D #2844AB
square
#AB2886 #AB8F28 #28AB4D #2844AB
split-complementary
#AB2886 #44AB28 #28AB8F
monochromatic
#481138 #791C5F #AB2886 #D23EA8 #DE70BF

Accessibility & contrast

On white

6.21
#AB2886 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#AB2886 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2886
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2886#FFFFFF#000000##FFFFFF
##AB28861.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355389
Deuteranopia (green-blind)
#5F6883
Tritanopia (blue-blind)
#B62A54
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2886;
/* rgb */ color: rgb(171, 40, 134);
/* oklch */ color: oklch(51.7% 0.191 342.0);
Tailwind
colors: {
  custom: {
    50: '#c870a9',
    500: '#ab2886',
    950: '#000000',
  },
}
SCSS
$custom: #ab2886;
$custom-light: #c870a9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2886",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 134
  },
  "hsl": {
    "h": 316.947,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51718,
    "c": 0.19085,
    "h": 342
  },
  "luminance": 0.11897
}

Semantic roles & 50–950 ramp

primary
#AB2886
secondary
#6AC484
accent
#E57143
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AB2886

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

Preview Lab → · Contrast checker → · Palette generator →

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