#AB2AAD#AB2AAD

#AB2AAD is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.9% C 0.216 H 327.4°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#AB2AAD
RGBrgb(171, 42, 173)
HSLhsl(299, 61%, 42%)
HSVhsv(299, 76%, 68%)
CMYKcmyk(1.2%, 75.7%, 0%, 32.2%)
CIE-LABlab(43.26, 65.63, -41.99)
CIE-LCHlch(43.26, 77.91, 327.39°)
OKLaboklab(53.95% 0.1822 -0.1165)
OKLCHoklch(53.95% 0.216 327.4)
XYZxyz(25.1650, 13.3328, 40.7751)
Luminance0.1333 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2AAD #2CAD2A
analogous
#6A2AAD #AB2AAD #AD2A6E
triadic
#AB2AAD #ADAB2A #2AADAB
tetradic
#AB2AAD #AD6A2A #2CAD2A #2A6EAD
square
#AB2AAD #AD6A2A #2CAD2A #2A6EAD
split-complementary
#AB2AAD #6EAD2A #2AAD6A
monochromatic
#4A124B #7A1E7C #AB2AAD #CF43D1 #DC74DD

Accessibility & contrast

On white

5.73
#AB2AAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AB2AAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2AAD
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2AAD#FFFFFF#000000##FFFFFF
##AB2AAD1.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#035CB1
Deuteranopia (green-blind)
#4D6CAA
Tritanopia (blue-blind)
#B0406A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2aad;
/* rgb */ color: rgb(171, 42, 173);
/* oklch */ color: oklch(53.9% 0.216 327.4);
Tailwind
colors: {
  custom: {
    50: '#c872c6',
    500: '#ab2aad',
    950: '#000000',
  },
}
SCSS
$custom: #ab2aad;
$custom-light: #c872c6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2aad",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 173
  },
  "hsl": {
    "h": 299.084,
    "s": 60.93,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53948,
    "c": 0.21628,
    "h": 327.4
  },
  "luminance": 0.13331
}

Semantic roles & 50–950 ramp

primary
#AB2AAD
secondary
#6FC56E
accent
#E44446
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2AAD

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

Preview Lab → · Contrast checker → · Palette generator →

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