#AB3871#AB3871

#AB3871 is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.3% C 0.160 H 353.5°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#AB3871
RGBrgb(171, 56, 113)
HSLhsl(330, 51%, 45%)
HSVhsv(330, 67%, 67%)
CMYKcmyk(0%, 67.3%, 33.9%, 32.9%)
CIE-LABlab(42.28, 51.98, -7.11)
CIE-LCHlch(42.28, 52.47, 352.21°)
OKLaboklab(52.34% 0.1588 -0.0182)
OKLCHoklch(52.34% 0.16 353.5)
XYZxyz(21.1906, 12.6809, 16.9513)
Luminance0.1268 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB3871 #38AB72
analogous
#AB38AB #AB3871 #AB3938
triadic
#AB3871 #71AB38 #3871AB
tetradic
#AB3871 #ABAB38 #38AB72 #3938AB
square
#AB3871 #ABAB38 #38AB72 #3938AB
split-complementary
#AB3871 #38AB39 #38ABAB
monochromatic
#4F1A34 #7D2953 #AB3871 #C85890 #D786AE

Accessibility & contrast

On white

5.94
#AB3871 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AB3871 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB3871
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB3871#FFFFFF#000000##FFFFFF
##AB38711.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B5673
Deuteranopia (green-blind)
#6B6B6E
Tritanopia (blue-blind)
#B83050
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab3871;
/* rgb */ color: rgb(171, 56, 113);
/* oklch */ color: oklch(52.3% 0.160 353.5);
Tailwind
colors: {
  custom: {
    50: '#c87799',
    500: '#ab3871',
    950: '#000000',
  },
}
SCSS
$custom: #ab3871;
$custom-light: #c87799;
$custom-dark: #000000;
JSON
{
  "hex": "#ab3871",
  "rgb": {
    "r": 171,
    "g": 56,
    "b": 113
  },
  "hsl": {
    "h": 330.261,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.52341,
    "c": 0.15983,
    "h": 353.5
  },
  "luminance": 0.12679
}

Semantic roles & 50–950 ramp

primary
#AB3871
secondary
#7DC1A0
accent
#DA954E
background
#FCF7F9
surface
#F9EEF2
border
#D2C9CC
text
#14090E
muted
#827B7E

Preview Lab

Preview with #AB3871

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

Preview Lab → · Contrast checker → · Palette generator →

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