#AB52CE#AB52CE

#AB52CE is a mid, vivid purple. Relative luminance 0.191; OKLCH L 60.0% C 0.195 H 315.3°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AB52CE
RGBrgb(171, 82, 206)
HSLhsl(283, 56%, 56%)
HSVhsv(283, 60%, 81%)
CMYKcmyk(17%, 60.2%, 0%, 19.2%)
CIE-LABlab(50.86, 55.79, -49.09)
CIE-LCHlch(50.86, 74.32, 318.65°)
OKLaboklab(60.03% 0.1389 -0.1375)
OKLCHoklch(60.03% 0.195 315.3)
XYZxyz(30.9507, 19.1498, 60.4464)
Luminance0.1915 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52CE #75CE52
analogous
#6D52CE #AB52CE #CE52B3
triadic
#AB52CE #CEAB52 #52CEAB
tetradic
#AB52CE #CE6D52 #75CE52 #52B3CE
square
#AB52CE #CE6D52 #75CE52 #52B3CE
split-complementary
#AB52CE #B3CE52 #52CE6D
monochromatic
#672581 #8D32B1 #AB52CE #C282DC #D9B1E9

Accessibility & contrast

On white

4.35
#AB52CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#AB52CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52CE
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52CE#FFFFFF#000000##000000
##AB52CE1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B74D2
Deuteranopia (green-blind)
#517CCB
Tritanopia (blue-blind)
#A96888
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab52ce;
/* rgb */ color: rgb(171, 82, 206);
/* oklch */ color: oklch(60.0% 0.195 315.3);
Tailwind
colors: {
  custom: {
    50: '#c787dd',
    500: '#ab52ce',
    950: '#000000',
  },
}
SCSS
$custom: #ab52ce;
$custom-light: #c787dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52ce",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 206
  },
  "hsl": {
    "h": 283.065,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60028,
    "c": 0.19544,
    "h": 315.3
  },
  "luminance": 0.19149
}

Semantic roles & 50–950 ramp

primary
#AB52CE
secondary
#B3D7A4
accent
#DF4973
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB52CE

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

Preview Lab → · Contrast checker → · Palette generator →

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