#AB2971#AB2971

#AB2971 is a mid, vivid pink. Relative luminance 0.114; OKLCH L 50.9% C 0.178 H 351.6°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#AB2971
RGBrgb(171, 41, 113)
HSLhsl(327, 61%, 42%)
HSVhsv(327, 76%, 67%)
CMYKcmyk(0%, 76%, 33.9%, 32.9%)
CIE-LABlab(40.31, 57.48, -10.07)
CIE-LCHlch(40.31, 58.35, 350.07°)
OKLaboklab(50.9% 0.1761 -0.026)
OKLCHoklch(50.9% 0.178 351.6)
XYZxyz(20.5694, 11.4385, 16.7442)
Luminance0.1144 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2971 #29AB63
analogous
#A429AB #AB2971 #AB2930
triadic
#AB2971 #71AB29 #2971AB
tetradic
#AB2971 #ABA429 #29AB63 #2930AB
square
#AB2971 #ABA429 #29AB63 #2930AB
split-complementary
#AB2971 #30AB29 #29ABA4
monochromatic
#481130 #7A1D50 #AB2971 #D14090 #DD71AD

Accessibility & contrast

On white

6.39
#AB2971 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#AB2971 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2971
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2971#FFFFFF#000000##FFFFFF
##AB29711.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab2971;
/* rgb */ color: rgb(171, 41, 113);
/* oklch */ color: oklch(50.9% 0.178 351.6);
Tailwind
colors: {
  custom: {
    50: '#c97099',
    500: '#ab2971',
    950: '#000000',
  },
}
SCSS
$custom: #ab2971;
$custom-light: #c97099;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2971",
  "rgb": {
    "r": 171,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 326.769,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.50896,
    "c": 0.178,
    "h": 351.6
  },
  "luminance": 0.11436
}

Semantic roles & 50–950 ramp

primary
#AB2971
secondary
#6CC493
accent
#E48B43
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080E
muted
#827B7E

Preview Lab

Preview with #AB2971

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

Preview Lab → · Contrast checker → · Palette generator →

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