#AB2A96#AB2A96

#AB2A96 is a mid, vivid purple. Relative luminance 0.125; OKLCH L 52.7% C 0.199 H 335.6°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#AB2A96
RGBrgb(171, 42, 150)
HSLhsl(310, 61%, 42%)
HSVhsv(310, 75%, 67%)
CMYKcmyk(0%, 75.4%, 12.3%, 32.9%)
CIE-LABlab(42.03, 62.03, -30.16)
CIE-LCHlch(42.03, 68.98, 334.07°)
OKLaboklab(52.67% 0.1816 -0.0824)
OKLCHoklch(52.67% 0.199 335.6)
XYZxyz(23.1279, 12.5180, 30.0464)
Luminance0.1252 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A96 #2AAB3F
analogous
#7F2AAB #AB2A96 #AB2A56
triadic
#AB2A96 #96AB2A #2A96AB
tetradic
#AB2A96 #AB7F2A #2AAB3F #2A56AB
square
#AB2A96 #AB7F2A #2AAB3F #2A56AB
split-complementary
#AB2A96 #56AB2A #2AAB7F
monochromatic
#491240 #7A1E6B #AB2A96 #D142B9 #DD73CB

Accessibility & contrast

On white

5.99
#AB2A96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#AB2A96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2A96
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A96#FFFFFF#000000##FFFFFF
##AB2A961.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5799
Deuteranopia (green-blind)
#596A93
Tritanopia (blue-blind)
#B4345D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab2a96;
/* rgb */ color: rgb(171, 42, 150);
/* oklch */ color: oklch(52.7% 0.199 335.6);
Tailwind
colors: {
  custom: {
    50: '#c871b5',
    500: '#ab2a96',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a96;
$custom-light: #c871b5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a96",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 309.767,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52666,
    "c": 0.19938,
    "h": 335.6
  },
  "luminance": 0.12516
}

Semantic roles & 50–950 ramp

primary
#AB2A96
secondary
#6DC47B
accent
#E45E44
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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