#AB2E96#AB2E96

#AB2E96 is a mid, vivid pink. Relative luminance 0.128; OKLCH L 53.0% C 0.195 H 335.7°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#AB2E96
RGBrgb(171, 46, 150)
HSLhsl(310, 58%, 43%)
HSVhsv(310, 73%, 67%)
CMYKcmyk(0%, 73.1%, 12.3%, 32.9%)
CIE-LABlab(42.48, 60.73, -29.45)
CIE-LCHlch(42.48, 67.50, 334.13°)
OKLaboklab(53% 0.1777 -0.0803)
OKLCHoklch(53% 0.195 335.7)
XYZxyz(23.2769, 12.8160, 30.0961)
Luminance0.1281 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2E96 #2EAB43
analogous
#822EAB #AB2E96 #AB2E57
triadic
#AB2E96 #96AB2E #2E96AB
tetradic
#AB2E96 #AB822E #2EAB43 #2E57AB
square
#AB2E96 #AB822E #2EAB43 #2E57AB
split-complementary
#AB2E96 #57AB2E #2EAB82
monochromatic
#4B1441 #7B216C #AB2E96 #CE48B7 #DB79CA

Accessibility & contrast

On white

5.89
#AB2E96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#AB2E96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2E96
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2E96#FFFFFF#000000##FFFFFF
##AB2E961.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5899
Deuteranopia (green-blind)
#5B6B93
Tritanopia (blue-blind)
#B4375F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2e96;
/* rgb */ color: rgb(171, 46, 150);
/* oklch */ color: oklch(53.0% 0.195 335.7);
Tailwind
colors: {
  custom: {
    50: '#c873b5',
    500: '#ab2e96',
    950: '#000000',
  },
}
SCSS
$custom: #ab2e96;
$custom-light: #c873b5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2e96",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 150
  },
  "hsl": {
    "h": 310.08,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52996,
    "c": 0.19503,
    "h": 335.7
  },
  "luminance": 0.12814
}

Semantic roles & 50–950 ramp

primary
#AB2E96
secondary
#72C37F
accent
#E16147
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2E96

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

Preview Lab → · Contrast checker → · Palette generator →

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