#AB2B71#AB2B71

#AB2B71 is a mid, vivid pink. Relative luminance 0.116; OKLCH L 51.1% C 0.176 H 351.8°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#AB2B71
RGBrgb(171, 43, 113)
HSLhsl(327, 60%, 42%)
HSVhsv(327, 75%, 67%)
CMYKcmyk(0%, 74.9%, 33.9%, 32.9%)
CIE-LABlab(40.54, 56.82, -9.72)
CIE-LCHlch(40.54, 57.65, 350.30°)
OKLaboklab(51.07% 0.174 -0.0251)
OKLCHoklch(51.07% 0.176 351.8)
XYZxyz(20.6403, 11.5804, 16.7679)
Luminance0.1158 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2B71 #2BAB65
analogous
#A52BAB #AB2B71 #AB2B31
triadic
#AB2B71 #71AB2B #2B71AB
tetradic
#AB2B71 #ABA52B #2BAB65 #2B31AB
square
#AB2B71 #ABA52B #2BAB65 #2B31AB
split-complementary
#AB2B71 #31AB2B #2BABA5
monochromatic
#491230 #7A1F51 #AB2B71 #D04390 #DC74AD

Accessibility & contrast

On white

6.33
#AB2B71 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#AB2B71 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2B71
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2B71#FFFFFF#000000##FFFFFF
##AB2B711.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415173
Deuteranopia (green-blind)
#66686E
Tritanopia (blue-blind)
#B8214A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ab2b71;
/* rgb */ color: rgb(171, 43, 113);
/* oklch */ color: oklch(51.1% 0.176 351.8);
Tailwind
colors: {
  custom: {
    50: '#c97099',
    500: '#ab2b71',
    950: '#000000',
  },
}
SCSS
$custom: #ab2b71;
$custom-light: #c97099;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2b71",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 327.188,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51066,
    "c": 0.17582,
    "h": 351.8
  },
  "luminance": 0.11578
}

Semantic roles & 50–950 ramp

primary
#AB2B71
secondary
#6EC495
accent
#E38C45
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080E
muted
#827B7E

Preview Lab

Preview with #AB2B71

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

Preview Lab → · Contrast checker → · Palette generator →

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