#AB2870#AB2870

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

Color values

HEX#AB2870
RGBrgb(171, 40, 112)
HSLhsl(327, 62%, 41%)
HSVhsv(327, 77%, 67%)
CMYKcmyk(0%, 76.6%, 34.5%, 32.9%)
CIE-LABlab(40.16, 57.68, -9.67)
CIE-LCHlch(40.16, 58.49, 350.49°)
OKLaboklab(50.78% 0.1768 -0.025)
OKLCHoklch(50.78% 0.179 352)
XYZxyz(20.4792, 11.3478, 16.4380)
Luminance0.1134 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2870 #28AB63
analogous
#A528AB #AB2870 #AB282F
triadic
#AB2870 #70AB28 #2870AB
tetradic
#AB2870 #ABA528 #28AB63 #282FAB
square
#AB2870 #ABA528 #28AB63 #282FAB
split-complementary
#AB2870 #2FAB28 #28ABA5
monochromatic
#48112F #791C50 #AB2870 #D23E8F #DE70AC

Accessibility & contrast

On white

6.42
#AB2870 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2870
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2870#FFFFFF#000000##FFFFFF
##AB28701.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405072
Deuteranopia (green-blind)
#65676D
Tritanopia (blue-blind)
#B81C49
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #ab2870;
/* rgb */ color: rgb(171, 40, 112);
/* oklch */ color: oklch(50.8% 0.179 352.0);
Tailwind
colors: {
  custom: {
    50: '#c96f99',
    500: '#ab2870',
    950: '#000000',
  },
}
SCSS
$custom: #ab2870;
$custom-light: #c96f99;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2870",
  "rgb": {
    "r": 171,
    "g": 40,
    "b": 112
  },
  "hsl": {
    "h": 327.023,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.50775,
    "c": 0.17857,
    "h": 352
  },
  "luminance": 0.11345
}

Semantic roles & 50–950 ramp

primary
#AB2870
secondary
#6AC493
accent
#E58C43
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080D
muted
#827B7E

Preview Lab

Preview with #AB2870

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

Preview Lab → · Contrast checker → · Palette generator →

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