#AB2AAC#AB2AAC

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

Color values

HEX#AB2AAC
RGBrgb(171, 42, 172)
HSLhsl(300, 61%, 42%)
HSVhsv(300, 76%, 67%)
CMYKcmyk(0.6%, 75.6%, 0%, 32.5%)
CIE-LABlab(43.20, 65.47, -41.48)
CIE-LCHlch(43.20, 77.50, 327.64°)
OKLaboklab(53.89% 0.1822 -0.1151)
OKLCHoklch(53.89% 0.216 327.7)
XYZxyz(25.0686, 13.2942, 40.2674)
Luminance0.1329 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2AAC #2BAC2A
analogous
#6A2AAC #AB2AAC #AC2A6C
triadic
#AB2AAC #ACAB2A #2AACAB
tetradic
#AB2AAC #AC6A2A #2BAC2A #2A6CAC
square
#AB2AAC #AC6A2A #2BAC2A #2A6CAC
split-complementary
#AB2AAC #6CAC2A #2AAC6A
monochromatic
#49124A #7A1E7B #AB2AAC #D042D1 #DC73DD

Accessibility & contrast

On white

5.74
#AB2AAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AB2AAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2AAC
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2AAC#FFFFFF#000000##FFFFFF
##AB2AAC1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065BAF
Deuteranopia (green-blind)
#4E6CA9
Tritanopia (blue-blind)
#B0406A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2aac;
/* rgb */ color: rgb(171, 42, 172);
/* oklch */ color: oklch(53.9% 0.216 327.7);
Tailwind
colors: {
  custom: {
    50: '#c872c5',
    500: '#ab2aac',
    950: '#000000',
  },
}
SCSS
$custom: #ab2aac;
$custom-light: #c872c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2aac",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 299.538,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53889,
    "c": 0.21552,
    "h": 327.7
  },
  "luminance": 0.13292
}

Semantic roles & 50–950 ramp

primary
#AB2AAC
secondary
#6EC46D
accent
#E44445
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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