#AB2C96#AB2C96

#AB2C96 is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.8% C 0.197 H 335.6°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#AB2C96
RGBrgb(171, 44, 150)
HSLhsl(310, 59%, 42%)
HSVhsv(310, 74%, 67%)
CMYKcmyk(0%, 74.3%, 12.3%, 32.9%)
CIE-LABlab(42.25, 61.40, -29.81)
CIE-LCHlch(42.25, 68.25, 334.10°)
OKLaboklab(52.83% 0.1797 -0.0814)
OKLCHoklch(52.83% 0.197 335.6)
XYZxyz(23.2006, 12.6634, 30.0706)
Luminance0.1266 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2C96 #2CAB41
analogous
#802CAB #AB2C96 #AB2C57
triadic
#AB2C96 #96AB2C #2C96AB
tetradic
#AB2C96 #AB802C #2CAB41 #2C57AB
square
#AB2C96 #AB802C #2CAB41 #2C57AB
split-complementary
#AB2C96 #57AB2C #2CAB80
monochromatic
#4A1341 #7A1F6B #AB2C96 #CF45B8 #DC76CB

Accessibility & contrast

On white

5.95
#AB2C96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#AB2C96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2C96
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2C96#FFFFFF#000000##FFFFFF
##AB2C961.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab2c96;
/* rgb */ color: rgb(171, 44, 150);
/* oklch */ color: oklch(52.8% 0.197 335.6);
Tailwind
colors: {
  custom: {
    50: '#c872b5',
    500: '#ab2c96',
    950: '#000000',
  },
}
SCSS
$custom: #ab2c96;
$custom-light: #c872b5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2c96",
  "rgb": {
    "r": 171,
    "g": 44,
    "b": 150
  },
  "hsl": {
    "h": 309.921,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52828,
    "c": 0.19725,
    "h": 335.6
  },
  "luminance": 0.12661
}

Semantic roles & 50–950 ramp

primary
#AB2C96
secondary
#6FC37D
accent
#E25F46
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2C96

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

Preview Lab → · Contrast checker → · Palette generator →

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