#AB2972#AB2972

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

Color values

HEX#AB2972
RGBrgb(171, 41, 114)
HSLhsl(326, 61%, 42%)
HSVhsv(326, 76%, 67%)
CMYKcmyk(0%, 76%, 33.3%, 32.9%)
CIE-LABlab(40.35, 57.59, -10.63)
CIE-LCHlch(40.35, 58.57, 349.54°)
OKLaboklab(50.94% 0.1764 -0.0276)
OKLCHoklch(50.94% 0.179 351.1)
XYZxyz(20.6260, 11.4612, 17.0424)
Luminance0.1146 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2972 #29AB62
analogous
#A329AB #AB2972 #AB2931
triadic
#AB2972 #72AB29 #2972AB
tetradic
#AB2972 #ABA329 #29AB62 #2931AB
square
#AB2972 #ABA329 #29AB62 #2931AB
split-complementary
#AB2972 #31AB29 #29ABA3
monochromatic
#481130 #7A1D51 #AB2972 #D14092 #DD71AE

Accessibility & contrast

On white

6.38
#AB2972 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2972
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2972#FFFFFF#000000##FFFFFF
##AB29721.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405074
Deuteranopia (green-blind)
#65676F
Tritanopia (blue-blind)
#B81F4A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #ab2972;
/* rgb */ color: rgb(171, 41, 114);
/* oklch */ color: oklch(50.9% 0.178 351.1);
Tailwind
colors: {
  custom: {
    50: '#c9709a',
    500: '#ab2972',
    950: '#000000',
  },
}
SCSS
$custom: #ab2972;
$custom-light: #c9709a;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2972",
  "rgb": {
    "r": 171,
    "g": 41,
    "b": 114
  },
  "hsl": {
    "h": 326.308,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.50936,
    "c": 0.1785,
    "h": 351.1
  },
  "luminance": 0.11459
}

Semantic roles & 50–950 ramp

primary
#AB2972
secondary
#6CC492
accent
#E48A43
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080E
muted
#827B7E

Preview Lab

Preview with #AB2972

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

Preview Lab → · Contrast checker → · Palette generator →

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