#AB52AC#AB52AC

#AB52AC is a mid, vivid purple. Relative luminance 0.177; OKLCH L 58.2% C 0.162 H 327.0°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#AB52AC
RGBrgb(171, 82, 172)
HSLhsl(299, 35%, 50%)
HSVhsv(299, 52%, 67%)
CMYKcmyk(0.6%, 52.3%, 0%, 32.5%)
CIE-LABlab(49.10, 49.14, -32.18)
CIE-LCHlch(49.10, 58.74, 326.78°)
OKLaboklab(58.16% 0.1362 -0.0885)
OKLCHoklch(58.16% 0.162 327)
XYZxyz(27.2578, 17.6726, 40.9971)
Luminance0.1767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52AC #53AC52
analogous
#7E52AC #AB52AC #AC5280
triadic
#AB52AC #ACAB52 #52ACAB
tetradic
#AB52AC #AC7E52 #53AC52 #5280AC
square
#AB52AC #AC7E52 #53AC52 #5280AC
split-complementary
#AB52AC #80AC52 #52AC7E
monochromatic
#592A59 #823E83 #AB52AC #BF7BC0 #D3A5D4

Accessibility & contrast

On white

4.63
#AB52AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#AB52AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB52AC
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52AC#FFFFFF#000000##FFFFFF
##AB52AC1.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#496DAF
Deuteranopia (green-blind)
#6479A9
Tritanopia (blue-blind)
#AF5C77
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab52ac;
/* rgb */ color: rgb(171, 82, 172);
/* oklch */ color: oklch(58.2% 0.162 327.0);
Tailwind
colors: {
  custom: {
    50: '#c687c5',
    500: '#ab52ac',
    950: '#000000',
  },
}
SCSS
$custom: #ab52ac;
$custom-light: #c687c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52ac",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 172
  },
  "hsl": {
    "h": 299.333,
    "s": 35.433,
    "l": 49.804
  },
  "oklch": {
    "l": 0.58163,
    "c": 0.16245,
    "h": 327
  },
  "luminance": 0.17671
}

Semantic roles & 50–950 ramp

primary
#AB52AC
secondary
#99C199
accent
#CB5C5E
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB52AC

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

Preview Lab → · Contrast checker → · Palette generator →

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