#AB2F96#AB2F96

#AB2F96 is a mid, vivid pink. Relative luminance 0.129; OKLCH L 53.1% C 0.194 H 335.7°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#AB2F96
RGBrgb(171, 47, 150)
HSLhsl(310, 57%, 43%)
HSVhsv(310, 73%, 67%)
CMYKcmyk(0%, 72.5%, 12.3%, 32.9%)
CIE-LABlab(42.60, 60.39, -29.26)
CIE-LCHlch(42.60, 67.11, 334.15°)
OKLaboklab(53.08% 0.1767 -0.0798)
OKLCHoklch(53.08% 0.194 335.7)
XYZxyz(23.3164, 12.8950, 30.1092)
Luminance0.1289 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2F96 #2FAB44
analogous
#822FAB #AB2F96 #AB2F58
triadic
#AB2F96 #96AB2F #2F96AB
tetradic
#AB2F96 #AB822F #2FAB44 #2F58AB
square
#AB2F96 #AB822F #2FAB44 #2F58AB
split-complementary
#AB2F96 #58AB2F #2FAB82
monochromatic
#4B1542 #7B226C #AB2F96 #CD4AB7 #DA7ACA

Accessibility & contrast

On white

5.87
#AB2F96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AB2F96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2F96
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2F96#FFFFFF#000000##FFFFFF
##AB2F961.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305999
Deuteranopia (green-blind)
#5B6B93
Tritanopia (blue-blind)
#B4385F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2f96;
/* rgb */ color: rgb(171, 47, 150);
/* oklch */ color: oklch(53.1% 0.194 335.7);
Tailwind
colors: {
  custom: {
    50: '#c873b5',
    500: '#ab2f96',
    950: '#000000',
  },
}
SCSS
$custom: #ab2f96;
$custom-light: #c873b5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2f96",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 310.161,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53082,
    "c": 0.19389,
    "h": 335.7
  },
  "luminance": 0.12893
}

Semantic roles & 50–950 ramp

primary
#AB2F96
secondary
#73C381
accent
#E06148
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2F96

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

Preview Lab → · Contrast checker → · Palette generator →

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