#AB52CC#AB52CC

#AB52CC is a mid, vivid purple. Relative luminance 0.191; OKLCH L 59.9% C 0.193 H 315.9°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AB52CC
RGBrgb(171, 82, 204)
HSLhsl(284, 54%, 56%)
HSVhsv(284, 60%, 80%)
CMYKcmyk(16.2%, 59.8%, 0%, 20%)
CIE-LABlab(50.75, 55.38, -48.13)
CIE-LCHlch(50.75, 73.37, 319.01°)
OKLaboklab(59.91% 0.1388 -0.1347)
OKLCHoklch(59.91% 0.193 315.9)
XYZxyz(30.7093, 19.0532, 59.1750)
Luminance0.1905 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52CC #73CC52
analogous
#6E52CC #AB52CC #CC52B0
triadic
#AB52CC #CCAB52 #52CCAB
tetradic
#AB52CC #CC6E52 #73CC52 #52B0CC
square
#AB52CC #CC6E52 #73CC52 #52B0CC
split-complementary
#AB52CC #B0CC52 #52CC6E
monochromatic
#66257E #8C33AE #AB52CC #C281DA #D9B1E8

Accessibility & contrast

On white

4.37
#AB52CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#AB52CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52CC
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52CC#FFFFFF#000000##000000
##AB52CC1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E73D0
Deuteranopia (green-blind)
#527BC9
Tritanopia (blue-blind)
#A96787
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab52cc;
/* rgb */ color: rgb(171, 82, 204);
/* oklch */ color: oklch(59.9% 0.193 315.9);
Tailwind
colors: {
  custom: {
    50: '#c787dc',
    500: '#ab52cc',
    950: '#000000',
  },
}
SCSS
$custom: #ab52cc;
$custom-light: #c787dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52cc",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 283.77,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5991,
    "c": 0.19344,
    "h": 315.9
  },
  "luminance": 0.19052
}

Semantic roles & 50–950 ramp

primary
#AB52CC
secondary
#B1D6A4
accent
#DE4A72
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB52CC

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

Preview Lab → · Contrast checker → · Palette generator →

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