#AB2871#AB2871

#AB2871 is a mid, vivid pink. Relative luminance 0.114; OKLCH L 50.8% C 0.179 H 351.5°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#AB2871
RGBrgb(171, 40, 113)
HSLhsl(327, 62%, 41%)
HSVhsv(327, 77%, 67%)
CMYKcmyk(0%, 76.6%, 33.9%, 32.9%)
CIE-LABlab(40.20, 57.80, -10.24)
CIE-LCHlch(40.20, 58.70, 349.96°)
OKLaboklab(50.81% 0.1771 -0.0265)
OKLCHoklch(50.81% 0.179 351.5)
XYZxyz(20.5352, 11.3702, 16.7328)
Luminance0.1137 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2871 #28AB62
analogous
#A428AB #AB2871 #AB2830
triadic
#AB2871 #71AB28 #2871AB
tetradic
#AB2871 #ABA428 #28AB62 #2830AB
square
#AB2871 #ABA428 #28AB62 #2830AB
split-complementary
#AB2871 #30AB28 #28ABA4
monochromatic
#48112F #791C50 #AB2871 #D23E91 #DE70AD

Accessibility & contrast

On white

6.41
#AB2871 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#AB2871 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2871
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2871#FFFFFF#000000##FFFFFF
##AB28711.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405073
Deuteranopia (green-blind)
#65676E
Tritanopia (blue-blind)
#B81D49
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #ab2871;
/* rgb */ color: rgb(171, 40, 113);
/* oklch */ color: oklch(50.8% 0.179 351.5);
Tailwind
colors: {
  custom: {
    50: '#c96f99',
    500: '#ab2871',
    950: '#000000',
  },
}
SCSS
$custom: #ab2871;
$custom-light: #c96f99;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2871",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 326.565,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.50814,
    "c": 0.17906,
    "h": 351.5
  },
  "luminance": 0.11368
}

Semantic roles & 50–950 ramp

primary
#AB2871
secondary
#6AC492
accent
#E58B43
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080E
muted
#827B7E

Preview Lab

Preview with #AB2871

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

Preview Lab → · Contrast checker → · Palette generator →

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