#AB2A99#AB2A99

#AB2A99 is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.8% C 0.202 H 334.5°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#AB2A99
RGBrgb(171, 42, 153)
HSLhsl(308, 61%, 42%)
HSVhsv(308, 75%, 67%)
CMYKcmyk(0%, 75.4%, 10.5%, 32.9%)
CIE-LABlab(42.18, 62.48, -31.74)
CIE-LCHlch(42.18, 70.08, 333.07°)
OKLaboklab(52.82% 0.1818 -0.0869)
OKLCHoklch(52.82% 0.202 334.5)
XYZxyz(23.3726, 12.6158, 31.3350)
Luminance0.1261 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A99 #2AAB3C
analogous
#7D2AAB #AB2A99 #AB2A59
triadic
#AB2A99 #99AB2A #2A99AB
tetradic
#AB2A99 #AB7D2A #2AAB3C #2A59AB
square
#AB2A99 #AB7D2A #2AAB3C #2A59AB
split-complementary
#AB2A99 #59AB2A #2AAB7D
monochromatic
#491241 #7A1E6D #AB2A99 #D142BD #DD73CE

Accessibility & contrast

On white

5.96
#AB2A99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AB2A99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2A99
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A99#FFFFFF#000000##FFFFFF
##AB2A991.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28579C
Deuteranopia (green-blind)
#586A96
Tritanopia (blue-blind)
#B3365F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2a99;
/* rgb */ color: rgb(171, 42, 153);
/* oklch */ color: oklch(52.8% 0.202 334.5);
Tailwind
colors: {
  custom: {
    50: '#c871b7',
    500: '#ab2a99',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a99;
$custom-light: #c871b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a99",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 153
  },
  "hsl": {
    "h": 308.372,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52824,
    "c": 0.2015,
    "h": 334.5
  },
  "luminance": 0.12614
}

Semantic roles & 50–950 ramp

primary
#AB2A99
secondary
#6DC479
accent
#E45A44
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2A99

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

Preview Lab → · Contrast checker → · Palette generator →

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