#AB2B81#AB2B81

#AB2B81 is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.7% C 0.185 H 344.3°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#AB2B81
RGBrgb(171, 43, 129)
HSLhsl(320, 60%, 42%)
HSVhsv(320, 75%, 67%)
CMYKcmyk(0%, 74.9%, 24.6%, 32.9%)
CIE-LABlab(41.17, 58.79, -18.67)
CIE-LCHlch(41.17, 61.68, 342.38°)
OKLaboklab(51.73% 0.1777 -0.0498)
OKLCHoklch(51.73% 0.185 344.3)
XYZxyz(21.6218, 11.9730, 21.9370)
Luminance0.1197 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2B81 #2BAB55
analogous
#952BAB #AB2B81 #AB2B41
triadic
#AB2B81 #81AB2B #2B81AB
tetradic
#AB2B81 #AB952B #2BAB55 #2B41AB
square
#AB2B81 #AB952B #2BAB55 #2B41AB
split-complementary
#AB2B81 #41AB2B #2BAB95
monochromatic
#491237 #7A1F5C #AB2B81 #D043A2 #DC74BA

Accessibility & contrast

On white

6.19
#AB2B81 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#AB2B81 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2B81
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2B81#FFFFFF#000000##FFFFFF
##AB2B811.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5383
Deuteranopia (green-blind)
#61697E
Tritanopia (blue-blind)
#B62A52
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ab2b81;
/* rgb */ color: rgb(171, 43, 129);
/* oklch */ color: oklch(51.7% 0.185 344.3);
Tailwind
colors: {
  custom: {
    50: '#c871a5',
    500: '#ab2b81',
    950: '#000000',
  },
}
SCSS
$custom: #ab2b81;
$custom-light: #c871a5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2b81",
  "rgb": {
    "r": 171,
    "g": 43,
    "b": 129
  },
  "hsl": {
    "h": 319.688,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51733,
    "c": 0.18456,
    "h": 344.3
  },
  "luminance": 0.11971
}

Semantic roles & 50–950 ramp

primary
#AB2B81
secondary
#6EC48A
accent
#E37945
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#14080F
muted
#827B7F

Preview Lab

Preview with #AB2B81

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

Preview Lab → · Contrast checker → · Palette generator →

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