#AB52B2#AB52B2

#AB52B2 is a mid, vivid purple. Relative luminance 0.179; OKLCH L 58.5% C 0.168 H 324.6°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#AB52B2
RGBrgb(171, 82, 178)
HSLhsl(296, 38%, 51%)
HSVhsv(296, 54%, 70%)
CMYKcmyk(3.9%, 53.9%, 0%, 30.2%)
CIE-LABlab(49.38, 50.26, -35.24)
CIE-LCHlch(49.38, 61.38, 324.96°)
OKLaboklab(58.47% 0.137 -0.0973)
OKLCHoklch(58.47% 0.168 324.6)
XYZxyz(27.8471, 17.9083, 44.1007)
Luminance0.1791 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52B2 #59B252
analogous
#7B52B2 #AB52B2 #B25289
triadic
#AB52B2 #B2AB52 #52B2AB
tetradic
#AB52B2 #B27B52 #59B252 #5289B2
square
#AB52B2 #B27B52 #59B252 #5289B2
split-complementary
#AB52B2 #89B252 #52B27B
monochromatic
#5B2A5F #843D8A #AB52B2 #C07CC5 #D4A7D8

Accessibility & contrast

On white

4.58
#AB52B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#AB52B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52B2
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52B2#FFFFFF#000000##000000
##AB52B21.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#456EB5
Deuteranopia (green-blind)
#6179AF
Tritanopia (blue-blind)
#AE5E7A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab52b2;
/* rgb */ color: rgb(171, 82, 178);
/* oklch */ color: oklch(58.5% 0.168 324.6);
Tailwind
colors: {
  custom: {
    50: '#c687c9',
    500: '#ab52b2',
    950: '#000000',
  },
}
SCSS
$custom: #ab52b2;
$custom-light: #c687c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52b2",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 295.625,
    "s": 38.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.58469,
    "c": 0.16805,
    "h": 324.6
  },
  "luminance": 0.17907
}

Semantic roles & 50–950 ramp

primary
#AB52B2
secondary
#9EC59B
accent
#CE5962
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB52B2

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

Preview Lab → · Contrast checker → · Palette generator →

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