#AB52AF#AB52AF

#AB52AF is a mid, vivid purple. Relative luminance 0.178; OKLCH L 58.3% C 0.165 H 325.8°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#AB52AF
RGBrgb(171, 82, 175)
HSLhsl(297, 37%, 50%)
HSVhsv(297, 53%, 69%)
CMYKcmyk(2.3%, 53.1%, 0%, 31.4%)
CIE-LABlab(49.24, 49.69, -33.72)
CIE-LCHlch(49.24, 60.05, 325.84°)
OKLaboklab(58.32% 0.1366 -0.0929)
OKLCHoklch(58.32% 0.165 325.8)
XYZxyz(27.5492, 17.7892, 42.5317)
Luminance0.1779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52AF #56AF52
analogous
#7C52AF #AB52AF #AF5285
triadic
#AB52AF #AFAB52 #52AFAB
tetradic
#AB52AF #AF7C52 #56AF52 #5285AF
square
#AB52AF #AF7C52 #56AF52 #5285AF
split-complementary
#AB52AF #85AF52 #52AF7C
monochromatic
#5A2B5C #833E86 #AB52AF #BF7CC2 #D4A6D6

Accessibility & contrast

On white

4.61
#AB52AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#AB52AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB52AF
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52AF#FFFFFF#000000##FFFFFF
##AB52AF1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#476EB2
Deuteranopia (green-blind)
#6379AC
Tritanopia (blue-blind)
#AF5D79
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab52af;
/* rgb */ color: rgb(171, 82, 175);
/* oklch */ color: oklch(58.3% 0.165 325.8);
Tailwind
colors: {
  custom: {
    50: '#c687c7',
    500: '#ab52af',
    950: '#000000',
  },
}
SCSS
$custom: #ab52af;
$custom-light: #c687c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52af",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 175
  },
  "hsl": {
    "h": 297.419,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.58315,
    "c": 0.16523,
    "h": 325.8
  },
  "luminance": 0.17788
}

Semantic roles & 50–950 ramp

primary
#AB52AF
secondary
#9BC39A
accent
#CD5B60
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB52AF

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

Preview Lab → · Contrast checker → · Palette generator →

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