#AB52C7#AB52C7

#AB52C7 is a mid, vivid purple. Relative luminance 0.188; OKLCH L 59.6% C 0.188 H 317.4°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#AB52C7
RGBrgb(171, 82, 199)
HSLhsl(286, 51%, 55%)
HSVhsv(286, 59%, 78%)
CMYKcmyk(14.1%, 58.8%, 0%, 22%)
CIE-LABlab(50.47, 54.36, -45.70)
CIE-LCHlch(50.47, 71.02, 319.95°)
OKLaboklab(59.62% 0.1387 -0.1276)
OKLCHoklch(59.62% 0.188 317.4)
XYZxyz(30.1192, 18.8172, 56.0673)
Luminance0.1882 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52C7 #6EC752
analogous
#7052C7 #AB52C7 #C752A9
triadic
#AB52C7 #C7AB52 #52C7AB
tetradic
#AB52C7 #C77052 #6EC752 #52A9C7
square
#AB52C7 #C77052 #6EC752 #52A9C7
split-complementary
#AB52C7 #A9C752 #52C770
monochromatic
#642778 #8B36A6 #AB52C7 #C180D6 #D8AEE5

Accessibility & contrast

On white

4.41
#AB52C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#AB52C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52C7
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52C7#FFFFFF#000000##000000
##AB52C71.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3472CB
Deuteranopia (green-blind)
#567BC4
Tritanopia (blue-blind)
#AA6585
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab52c7;
/* rgb */ color: rgb(171, 82, 199);
/* oklch */ color: oklch(59.6% 0.188 317.4);
Tailwind
colors: {
  custom: {
    50: '#c787d8',
    500: '#ab52c7',
    950: '#000000',
  },
}
SCSS
$custom: #ab52c7;
$custom-light: #c787d8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52c7",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 199
  },
  "hsl": {
    "h": 285.641,
    "s": 51.092,
    "l": 55.098
  },
  "oklch": {
    "l": 0.59619,
    "c": 0.18845,
    "h": 317.4
  },
  "luminance": 0.18816
}

Semantic roles & 50–950 ramp

primary
#AB52C7
secondary
#AED3A2
accent
#DB4D6F
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AB52C7

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

Preview Lab → · Contrast checker → · Palette generator →

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