#AB52CA#AB52CA

#AB52CA is a mid, vivid purple. Relative luminance 0.190; OKLCH L 59.8% C 0.191 H 316.5°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AB52CA
RGBrgb(171, 82, 202)
HSLhsl(285, 53%, 56%)
HSVhsv(285, 59%, 79%)
CMYKcmyk(15.3%, 59.4%, 0%, 20.8%)
CIE-LABlab(50.64, 54.97, -47.16)
CIE-LCHlch(50.64, 72.43, 319.38°)
OKLaboklab(59.79% 0.1388 -0.1319)
OKLCHoklch(59.79% 0.191 316.5)
XYZxyz(30.4710, 18.9579, 57.9198)
Luminance0.1896 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52CA #71CA52
analogous
#6F52CA #AB52CA #CA52AD
triadic
#AB52CA #CAAB52 #52CAAB
tetradic
#AB52CA #CA6F52 #71CA52 #52ADCA
square
#AB52CA #CA6F52 #71CA52 #52ADCA
split-complementary
#AB52CA #ADCA52 #52CA6F
monochromatic
#66267C #8C34AB #AB52CA #C281D8 #D8B0E7

Accessibility & contrast

On white

4.38
#AB52CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#AB52CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52CA
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52CA#FFFFFF#000000##000000
##AB52CA1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3073CE
Deuteranopia (green-blind)
#537BC7
Tritanopia (blue-blind)
#A96686
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab52ca;
/* rgb */ color: rgb(171, 82, 202);
/* oklch */ color: oklch(59.8% 0.191 316.5);
Tailwind
colors: {
  custom: {
    50: '#c787db',
    500: '#ab52ca',
    950: '#000000',
  },
}
SCSS
$custom: #ab52ca;
$custom-light: #c787db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52ca",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 284.5,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.59793,
    "c": 0.19144,
    "h": 316.5
  },
  "luminance": 0.18957
}

Semantic roles & 50–950 ramp

primary
#AB52CA
secondary
#B0D5A3
accent
#DD4B71
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB52CA

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

Preview Lab → · Contrast checker → · Palette generator →

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