#AB52C2#AB52C2

#AB52C2 is a mid, vivid purple. Relative luminance 0.186; OKLCH L 59.3% C 0.184 H 319.0°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AB52C2
RGBrgb(171, 82, 194)
HSLhsl(288, 48%, 54%)
HSVhsv(288, 58%, 76%)
CMYKcmyk(11.9%, 57.7%, 0%, 23.9%)
CIE-LABlab(50.20, 53.36, -43.24)
CIE-LCHlch(50.20, 68.68, 320.98°)
OKLaboklab(59.33% 0.1384 -0.1205)
OKLCHoklch(59.33% 0.184 319)
XYZxyz(29.5482, 18.5888, 53.0600)
Luminance0.1859 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52C2 #69C252
analogous
#7352C2 #AB52C2 #C252A1
triadic
#AB52C2 #C2AB52 #52C2AB
tetradic
#AB52C2 #C27352 #69C252 #52A1C2
square
#AB52C2 #C27352 #69C252 #52A1C2
split-complementary
#AB52C2 #A1C252 #52C273
monochromatic
#622872 #8A389F #AB52C2 #C17FD2 #D7ACE2

Accessibility & contrast

On white

4.45
#AB52C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#AB52C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52C2
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52C2#FFFFFF#000000##000000
##AB52C21.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3971C6
Deuteranopia (green-blind)
#597BBF
Tritanopia (blue-blind)
#AB6482
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab52c2;
/* rgb */ color: rgb(171, 82, 194);
/* oklch */ color: oklch(59.3% 0.184 319.0);
Tailwind
colors: {
  custom: {
    50: '#c787d5',
    500: '#ab52c2',
    950: '#000000',
  },
}
SCSS
$custom: #ab52c2;
$custom-light: #c787d5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52c2",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 194
  },
  "hsl": {
    "h": 287.679,
    "s": 47.863,
    "l": 54.118
  },
  "oklch": {
    "l": 0.59334,
    "c": 0.18351,
    "h": 319
  },
  "luminance": 0.18588
}

Semantic roles & 50–950 ramp

primary
#AB52C2
secondary
#AAD0A0
accent
#D7506C
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AB52C2

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

Preview Lab → · Contrast checker → · Palette generator →

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