#AB52BA#AB52BA

#AB52BA is a mid, vivid purple. Relative luminance 0.182; OKLCH L 58.9% C 0.176 H 321.7°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#AB52BA
RGBrgb(171, 82, 186)
HSLhsl(291, 43%, 53%)
HSVhsv(291, 56%, 73%)
CMYKcmyk(8.1%, 55.9%, 0%, 27.1%)
CIE-LABlab(49.78, 51.79, -39.27)
CIE-LCHlch(49.78, 64.99, 322.82°)
OKLaboklab(58.89% 0.1378 -0.1089)
OKLCHoklch(58.89% 0.176 321.7)
XYZxyz(28.6738, 18.2390, 48.4550)
Luminance0.1824 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52BA #61BA52
analogous
#7752BA #AB52BA #BA5295
triadic
#AB52BA #BAAB52 #52BAAB
tetradic
#AB52BA #BA7752 #61BA52 #5295BA
square
#AB52BA #BA7752 #61BA52 #5295BA
split-complementary
#AB52BA #95BA52 #52BA77
monochromatic
#5F2A68 #873B94 #AB52BA #C07ECB #D5AADD

Accessibility & contrast

On white

4.52
#AB52BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#AB52BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52BA
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52BA#FFFFFF#000000##000000
##AB52BA1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F70BD
Deuteranopia (green-blind)
#5D7AB7
Tritanopia (blue-blind)
#AD617E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ab52ba;
/* rgb */ color: rgb(171, 82, 186);
/* oklch */ color: oklch(58.9% 0.176 321.7);
Tailwind
colors: {
  custom: {
    50: '#c687cf',
    500: '#ab52ba',
    950: '#000000',
  },
}
SCSS
$custom: #ab52ba;
$custom-light: #c687cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52ba",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 186
  },
  "hsl": {
    "h": 291.346,
    "s": 42.975,
    "l": 52.549
  },
  "oklch": {
    "l": 0.58893,
    "c": 0.1757,
    "h": 321.7
  },
  "luminance": 0.18238
}

Semantic roles & 50–950 ramp

primary
#AB52BA
secondary
#A4CA9D
accent
#D35567
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AB52BA

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

Preview Lab → · Contrast checker → · Palette generator →

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