#AB2E81#AB2E81

#AB2E81 is a mid, vivid pink. Relative luminance 0.122; OKLCH L 52.0% C 0.181 H 344.5°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#AB2E81
RGBrgb(171, 46, 129)
HSLhsl(320, 58%, 43%)
HSVhsv(320, 73%, 67%)
CMYKcmyk(0%, 73.1%, 24.6%, 32.9%)
CIE-LABlab(41.53, 57.78, -18.12)
CIE-LCHlch(41.53, 60.55, 342.59°)
OKLaboklab(51.99% 0.1746 -0.0483)
OKLCHoklch(51.99% 0.181 344.5)
XYZxyz(21.7349, 12.1992, 21.9747)
Luminance0.1220 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2E81 #2EAB58
analogous
#972EAB #AB2E81 #AB2E42
triadic
#AB2E81 #81AB2E #2E81AB
tetradic
#AB2E81 #AB972E #2EAB58 #2E42AB
square
#AB2E81 #AB972E #2EAB58 #2E42AB
split-complementary
#AB2E81 #42AB2E #2EAB97
monochromatic
#4B1438 #7B215D #AB2E81 #CE48A1 #DB79BA

Accessibility & contrast

On white

6.11
#AB2E81 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#AB2E81 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2E81
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2E81#FFFFFF#000000##FFFFFF
##AB2E811.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5583
Deuteranopia (green-blind)
#626A7E
Tritanopia (blue-blind)
#B62D53
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab2e81;
/* rgb */ color: rgb(171, 46, 129);
/* oklch */ color: oklch(52.0% 0.181 344.5);
Tailwind
colors: {
  custom: {
    50: '#c872a5',
    500: '#ab2e81',
    950: '#000000',
  },
}
SCSS
$custom: #ab2e81;
$custom-light: #c872a5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2e81",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 129
  },
  "hsl": {
    "h": 320.16,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51993,
    "c": 0.18116,
    "h": 344.5
  },
  "luminance": 0.12197
}

Semantic roles & 50–950 ramp

primary
#AB2E81
secondary
#72C38D
accent
#E17B47
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AB2E81

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

Preview Lab → · Contrast checker → · Palette generator →

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