#AB52BC#AB52BC

#AB52BC is a mid, vivid purple. Relative luminance 0.183; OKLCH L 59.0% C 0.178 H 321.0°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AB52BC
RGBrgb(171, 82, 188)
HSLhsl(290, 44%, 53%)
HSVhsv(290, 56%, 74%)
CMYKcmyk(9%, 56.4%, 0%, 26.3%)
CIE-LABlab(49.89, 52.17, -40.27)
CIE-LCHlch(49.89, 65.91, 322.34°)
OKLaboklab(59% 0.138 -0.1118)
OKLCHoklch(59% 0.178 321)
XYZxyz(28.8879, 18.3247, 49.5826)
Luminance0.1832 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52BC #63BC52
analogous
#7652BC #AB52BC #BC5298
triadic
#AB52BC #BCAB52 #52BCAB
tetradic
#AB52BC #BC7652 #63BC52 #5298BC
square
#AB52BC #BC7652 #63BC52 #5298BC
split-complementary
#AB52BC #98BC52 #52BC76
monochromatic
#60296A #883A97 #AB52BC #C07ECD #D6AADE

Accessibility & contrast

On white

4.50
#AB52BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#AB52BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52BC
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52BC#FFFFFF#000000##000000
##AB52BC1.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E70BF
Deuteranopia (green-blind)
#5C7AB9
Tritanopia (blue-blind)
#AC617F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab52bc;
/* rgb */ color: rgb(171, 82, 188);
/* oklch */ color: oklch(59.0% 0.178 321.0);
Tailwind
colors: {
  custom: {
    50: '#c687d0',
    500: '#ab52bc',
    950: '#000000',
  },
}
SCSS
$custom: #ab52bc;
$custom-light: #c687d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52bc",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 188
  },
  "hsl": {
    "h": 290.377,
    "s": 44.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.59002,
    "c": 0.17764,
    "h": 321
  },
  "luminance": 0.18323
}

Semantic roles & 50–950 ramp

primary
#AB52BC
secondary
#A5CC9E
accent
#D45468
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AB52BC

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

Preview Lab → · Contrast checker → · Palette generator →

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