#AB52B3#AB52B3

#AB52B3 is a mid, vivid purple. Relative luminance 0.179; OKLCH L 58.5% C 0.169 H 324.2°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#AB52B3
RGBrgb(171, 82, 179)
HSLhsl(295, 39%, 51%)
HSVhsv(295, 54%, 70%)
CMYKcmyk(4.5%, 54.2%, 0%, 29.8%)
CIE-LABlab(49.43, 50.44, -35.75)
CIE-LCHlch(49.43, 61.83, 324.67°)
OKLaboklab(58.52% 0.1371 -0.0988)
OKLCHoklch(58.52% 0.169 324.2)
XYZxyz(27.9478, 17.9486, 44.6314)
Luminance0.1795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52B3 #5AB352
analogous
#7A52B3 #AB52B3 #B3528A
triadic
#AB52B3 #B3AB52 #52B3AB
tetradic
#AB52B3 #B37A52 #5AB352 #528AB3
square
#AB52B3 #B37A52 #5AB352 #528AB3
split-complementary
#AB52B3 #8AB352 #52B37A
monochromatic
#5C2A60 #843D8B #AB52B3 #C07DC6 #D4A7D8

Accessibility & contrast

On white

4.58
#AB52B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#AB52B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52B3
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52B3#FFFFFF#000000##000000
##AB52B31.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#446FB6
Deuteranopia (green-blind)
#6179B0
Tritanopia (blue-blind)
#AE5E7B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab52b3;
/* rgb */ color: rgb(171, 82, 179);
/* oklch */ color: oklch(58.5% 0.169 324.2);
Tailwind
colors: {
  custom: {
    50: '#c687ca',
    500: '#ab52b3',
    950: '#000000',
  },
}
SCSS
$custom: #ab52b3;
$custom-light: #c687ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52b3",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 179
  },
  "hsl": {
    "h": 295.052,
    "s": 38.956,
    "l": 51.176
  },
  "oklch": {
    "l": 0.58521,
    "c": 0.16899,
    "h": 324.2
  },
  "luminance": 0.17947
}

Semantic roles & 50–950 ramp

primary
#AB52B3
secondary
#9FC69B
accent
#CF5963
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB52B3

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

Preview Lab → · Contrast checker → · Palette generator →

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