#AB2AA5#AB2AA5

#AB2AA5 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.5% C 0.210 H 330.1°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#AB2AA5
RGBrgb(171, 42, 165)
HSLhsl(303, 61%, 42%)
HSVhsv(303, 75%, 67%)
CMYKcmyk(0%, 75.4%, 3.5%, 32.9%)
CIE-LABlab(42.81, 64.34, -37.94)
CIE-LCHlch(42.81, 74.69, 329.47°)
OKLaboklab(53.48% 0.1823 -0.1048)
OKLCHoklch(53.48% 0.21 330.1)
XYZxyz(24.4140, 13.0324, 36.8197)
Luminance0.1303 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2AA5 #2AAB30
analogous
#712AAB #AB2AA5 #AB2A65
triadic
#AB2AA5 #A5AB2A #2AA5AB
tetradic
#AB2AA5 #AB712A #2AAB30 #2A65AB
square
#AB2AA5 #AB712A #2AAB30 #2A65AB
split-complementary
#AB2AA5 #65AB2A #2AAB71
monochromatic
#491246 #7A1E76 #AB2AA5 #D142CA #DD73D8

Accessibility & contrast

On white

5.82
#AB2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AB2AA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2AA5
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2AA5#FFFFFF#000000##FFFFFF
##AB2AA51.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185AA8
Deuteranopia (green-blind)
#526BA2
Tritanopia (blue-blind)
#B13C66
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2aa5;
/* rgb */ color: rgb(171, 42, 165);
/* oklch */ color: oklch(53.5% 0.210 330.1);
Tailwind
colors: {
  custom: {
    50: '#c872c0',
    500: '#ab2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #ab2aa5;
$custom-light: #c872c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2aa5",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 302.791,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53483,
    "c": 0.21024,
    "h": 330.1
  },
  "luminance": 0.1303
}

Semantic roles & 50–950 ramp

primary
#AB2AA5
secondary
#6DC471
accent
#E44C44
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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