#AB52BF#AB52BF

#AB52BF is a mid, vivid purple. Relative luminance 0.185; OKLCH L 59.2% C 0.181 H 320.0°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#AB52BF
RGBrgb(171, 82, 191)
HSLhsl(289, 46%, 54%)
HSVhsv(289, 57%, 75%)
CMYKcmyk(10.5%, 57.1%, 0%, 25.1%)
CIE-LABlab(50.04, 52.76, -41.76)
CIE-LCHlch(50.04, 67.29, 321.64°)
OKLaboklab(59.17% 0.1382 -0.1162)
OKLCHoklch(59.17% 0.181 320)
XYZxyz(29.2147, 18.4554, 51.3035)
Luminance0.1845 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52BF #66BF52
analogous
#7452BF #AB52BF #BF529C
triadic
#AB52BF #BFAB52 #52BFAB
tetradic
#AB52BF #BF7452 #66BF52 #529CBF
square
#AB52BF #BF7452 #66BF52 #529CBF
split-complementary
#AB52BF #9CBF52 #52BF74
monochromatic
#61296E #89399B #AB52BF #C17FD0 #D6ABE0

Accessibility & contrast

On white

4.48
#AB52BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#AB52BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52BF
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52BF#FFFFFF#000000##000000
##AB52BF1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B71C2
Deuteranopia (green-blind)
#5B7ABC
Tritanopia (blue-blind)
#AC6381
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab52bf;
/* rgb */ color: rgb(171, 82, 191);
/* oklch */ color: oklch(59.2% 0.181 320.0);
Tailwind
colors: {
  custom: {
    50: '#c787d3',
    500: '#ab52bf',
    950: '#000000',
  },
}
SCSS
$custom: #ab52bf;
$custom-light: #c787d3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52bf",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 191
  },
  "hsl": {
    "h": 288.991,
    "s": 45.992,
    "l": 53.529
  },
  "oklch": {
    "l": 0.59167,
    "c": 0.18056,
    "h": 320
  },
  "luminance": 0.18454
}

Semantic roles & 50–950 ramp

primary
#AB52BF
secondary
#A8CE9F
accent
#D6526A
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AB52BF

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

Preview Lab → · Contrast checker → · Palette generator →

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