#AB52BB#AB52BB

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

Color values

HEX#AB52BB
RGBrgb(171, 82, 187)
HSLhsl(291, 44%, 53%)
HSVhsv(291, 56%, 73%)
CMYKcmyk(8.6%, 56.1%, 0%, 26.7%)
CIE-LABlab(49.84, 51.98, -39.77)
CIE-LCHlch(49.84, 65.45, 322.58°)
OKLaboklab(58.95% 0.1379 -0.1104)
OKLCHoklch(58.95% 0.177 321.3)
XYZxyz(28.7805, 18.2817, 49.0168)
Luminance0.1828 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52BB #62BB52
analogous
#7652BB #AB52BB #BB5296
triadic
#AB52BB #BBAB52 #52BBAB
tetradic
#AB52BB #BB7652 #62BB52 #5296BB
square
#AB52BB #BB7652 #62BB52 #5296BB
split-complementary
#AB52BB #96BB52 #52BB76
monochromatic
#602969 #873B95 #AB52BB #C07ECC #D6AADE

Accessibility & contrast

On white

4.51
#AB52BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB52BB#FFFFFF#000000##000000
##AB52BB1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F70BE
Deuteranopia (green-blind)
#5D7AB8
Tritanopia (blue-blind)
#AD617F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ab52bb;
/* rgb */ color: rgb(171, 82, 187);
/* oklch */ color: oklch(58.9% 0.177 321.3);
Tailwind
colors: {
  custom: {
    50: '#c687d0',
    500: '#ab52bb',
    950: '#000000',
  },
}
SCSS
$custom: #ab52bb;
$custom-light: #c687d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52bb",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 187
  },
  "hsl": {
    "h": 290.857,
    "s": 43.568,
    "l": 52.745
  },
  "oklch": {
    "l": 0.58947,
    "c": 0.17667,
    "h": 321.3
  },
  "luminance": 0.1828
}

Semantic roles & 50–950 ramp

primary
#AB52BB
secondary
#A5CB9E
accent
#D35468
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AB52BB

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

Preview Lab → · Contrast checker → · Palette generator →

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