#AB52D1#AB52D1

#AB52D1 is a mid, vivid purple. Relative luminance 0.193; OKLCH L 60.2% C 0.198 H 314.4°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AB52D1
RGBrgb(171, 82, 209)
HSLhsl(282, 58%, 57%)
HSVhsv(282, 61%, 82%)
CMYKcmyk(18.2%, 60.8%, 0%, 18%)
CIE-LABlab(51.03, 56.41, -50.54)
CIE-LCHlch(51.03, 75.74, 318.14°)
OKLaboklab(60.21% 0.1389 -0.1418)
OKLCHoklch(60.21% 0.198 314.4)
XYZxyz(31.3186, 19.2969, 62.3841)
Luminance0.1930 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52D1 #78D152
analogous
#6C52D1 #AB52D1 #D152B8
triadic
#AB52D1 #D1AB52 #52D1AB
tetradic
#AB52D1 #D16C52 #78D152 #52B8D1
square
#AB52D1 #D16C52 #78D152 #52B8D1
split-complementary
#AB52D1 #B8D152 #52D16C
monochromatic
#682385 #8E30B6 #AB52D1 #C282DE #DAB3EB

Accessibility & contrast

On white

4.32
#AB52D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#AB52D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52D1
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52D1#FFFFFF#000000##000000
##AB52D11.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2774D5
Deuteranopia (green-blind)
#4E7CCE
Tritanopia (blue-blind)
#A8698A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab52d1;
/* rgb */ color: rgb(171, 82, 209);
/* oklch */ color: oklch(60.2% 0.198 314.4);
Tailwind
colors: {
  custom: {
    50: '#c787e0',
    500: '#ab52d1',
    950: '#000000',
  },
}
SCSS
$custom: #ab52d1;
$custom-light: #c787e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52d1",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 209
  },
  "hsl": {
    "h": 282.047,
    "s": 57.991,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60207,
    "c": 0.19845,
    "h": 314.4
  },
  "luminance": 0.19296
}

Semantic roles & 50–950 ramp

primary
#AB52D1
secondary
#B5D9A6
accent
#E14775
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB52D1

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

Preview Lab → · Contrast checker → · Palette generator →

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