#AB2D96#AB2D96

#AB2D96 is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.9% C 0.196 H 335.7°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#AB2D96
RGBrgb(171, 45, 150)
HSLhsl(310, 58%, 42%)
HSVhsv(310, 74%, 67%)
CMYKcmyk(0%, 73.7%, 12.3%, 32.9%)
CIE-LABlab(42.37, 61.07, -29.63)
CIE-LCHlch(42.37, 67.88, 334.12°)
OKLaboklab(52.91% 0.1787 -0.0808)
OKLCHoklch(52.91% 0.196 335.7)
XYZxyz(23.2383, 12.7388, 30.0832)
Luminance0.1274 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2D96 #2DAB42
analogous
#812DAB #AB2D96 #AB2D57
triadic
#AB2D96 #96AB2D #2D96AB
tetradic
#AB2D96 #AB812D #2DAB42 #2D57AB
square
#AB2D96 #AB812D #2DAB42 #2D57AB
split-complementary
#AB2D96 #57AB2D #2DAB81
monochromatic
#4A1441 #7B206C #AB2D96 #CE47B8 #DB77CB

Accessibility & contrast

On white

5.92
#AB2D96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#AB2D96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2D96
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2D96#FFFFFF#000000##FFFFFF
##AB2D961.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5899
Deuteranopia (green-blind)
#5A6B93
Tritanopia (blue-blind)
#B4365E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2d96;
/* rgb */ color: rgb(171, 45, 150);
/* oklch */ color: oklch(52.9% 0.196 335.7);
Tailwind
colors: {
  custom: {
    50: '#c873b5',
    500: '#ab2d96',
    950: '#000000',
  },
}
SCSS
$custom: #ab2d96;
$custom-light: #c873b5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2d96",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 310,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52911,
    "c": 0.19616,
    "h": 335.7
  },
  "luminance": 0.12737
}

Semantic roles & 50–950 ramp

primary
#AB2D96
secondary
#71C37E
accent
#E26046
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2D96

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

Preview Lab → · Contrast checker → · Palette generator →

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