#AB52D5#AB52D5

#AB52D5 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.5% C 0.202 H 313.3°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AB52D5
RGBrgb(171, 82, 213)
HSLhsl(281, 61%, 58%)
HSVhsv(281, 62%, 84%)
CMYKcmyk(19.7%, 61.5%, 0%, 16.5%)
CIE-LABlab(51.26, 57.25, -52.45)
CIE-LCHlch(51.26, 77.64, 317.50°)
OKLaboklab(60.45% 0.1389 -0.1474)
OKLCHoklch(60.45% 0.202 313.3)
XYZxyz(31.8201, 19.4975, 65.0251)
Luminance0.1950 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52D5 #7CD552
analogous
#6952D5 #AB52D5 #D552BE
triadic
#AB52D5 #D5AB52 #52D5AB
tetradic
#AB52D5 #D56952 #7CD552 #52BED5
square
#AB52D5 #D56952 #7CD552 #52BED5
split-complementary
#AB52D5 #BED552 #52D569
monochromatic
#69228B #8E2EBC #AB52D5 #C383E1 #DBB4ED

Accessibility & contrast

On white

4.29
#AB52D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#AB52D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52D5
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52D5#FFFFFF#000000##000000
##AB52D51.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2075D9
Deuteranopia (green-blind)
#4B7CD2
Tritanopia (blue-blind)
#A76A8C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab52d5;
/* rgb */ color: rgb(171, 82, 213);
/* oklch */ color: oklch(60.5% 0.202 313.3);
Tailwind
colors: {
  custom: {
    50: '#c788e2',
    500: '#ab52d5',
    950: '#000000',
  },
}
SCSS
$custom: #ab52d5;
$custom-light: #c788e2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52d5",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 213
  },
  "hsl": {
    "h": 280.763,
    "s": 60.93,
    "l": 57.843
  },
  "oklch": {
    "l": 0.6045,
    "c": 0.20248,
    "h": 313.3
  },
  "luminance": 0.19497
}

Semantic roles & 50–950 ramp

primary
#AB52D5
secondary
#B8DCA7
accent
#E44477
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB52D5

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

Preview Lab → · Contrast checker → · Palette generator →

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