#AB52D2#AB52D2

#AB52D2 is a mid, vivid purple. Relative luminance 0.193; OKLCH L 60.3% C 0.199 H 314.1°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AB52D2
RGBrgb(171, 82, 210)
HSLhsl(282, 59%, 57%)
HSVhsv(282, 61%, 82%)
CMYKcmyk(18.6%, 61%, 0%, 17.6%)
CIE-LABlab(51.09, 56.62, -51.02)
CIE-LCHlch(51.09, 76.22, 317.98°)
OKLaboklab(60.27% 0.1389 -0.1432)
OKLCHoklch(60.27% 0.199 314.1)
XYZxyz(31.4428, 19.3466, 63.0382)
Luminance0.1935 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52D2 #79D252
analogous
#6B52D2 #AB52D2 #D252B9
triadic
#AB52D2 #D2AB52 #52D2AB
tetradic
#AB52D2 #D26B52 #79D252 #52B9D2
square
#AB52D2 #D26B52 #79D252 #52B9D2
split-complementary
#AB52D2 #B9D252 #52D26B
monochromatic
#682387 #8E30B7 #AB52D2 #C383DF #DAB3EB

Accessibility & contrast

On white

4.31
#AB52D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#AB52D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52D2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52D2#FFFFFF#000000##000000
##AB52D21.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2575D6
Deuteranopia (green-blind)
#4E7CCF
Tritanopia (blue-blind)
#A8698A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab52d2;
/* rgb */ color: rgb(171, 82, 210);
/* oklch */ color: oklch(60.3% 0.199 314.1);
Tailwind
colors: {
  custom: {
    50: '#c787e0',
    500: '#ab52d2',
    950: '#000000',
  },
}
SCSS
$custom: #ab52d2;
$custom-light: #c787e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52d2",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 210
  },
  "hsl": {
    "h": 281.719,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.60268,
    "c": 0.19945,
    "h": 314.1
  },
  "luminance": 0.19346
}

Semantic roles & 50–950 ramp

primary
#AB52D2
secondary
#B6DAA6
accent
#E24675
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB52D2

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

Preview Lab → · Contrast checker → · Palette generator →

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