#AB519D#AB519D

#AB519D is a mid, vivid purple. Relative luminance 0.170; OKLCH L 57.3% C 0.151 H 333.6°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AB519D
RGBrgb(171, 81, 157)
HSLhsl(309, 36%, 49%)
HSVhsv(309, 53%, 67%)
CMYKcmyk(0%, 52.6%, 8.2%, 32.9%)
CIE-LABlab(48.23, 46.97, -24.68)
CIE-LCHlch(48.23, 53.06, 332.28°)
OKLaboklab(57.3% 0.1351 -0.0671)
OKLCHoklch(57.3% 0.151 333.6)
XYZxyz(25.8228, 16.9788, 33.8089)
Luminance0.1698 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB519D #51AB5F
analogous
#8C51AB #AB519D #AB5170
triadic
#AB519D #9DAB51 #519DAB
tetradic
#AB519D #AB8C51 #51AB5F #5170AB
square
#AB519D #AB8C51 #51AB5F #5170AB
split-complementary
#AB519D #70AB51 #51AB8C
monochromatic
#582A51 #813D77 #AB519D #C079B5 #D3A3CC

Accessibility & contrast

On white

4.78
#AB519D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#AB519D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB519D
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB519D#FFFFFF#000000##FFFFFF
##AB519D1.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#506AA0
Deuteranopia (green-blind)
#6A779A
Tritanopia (blue-blind)
#B25770
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab519d;
/* rgb */ color: rgb(171, 81, 157);
/* oklch */ color: oklch(57.3% 0.151 333.6);
Tailwind
colors: {
  custom: {
    50: '#c686ba',
    500: '#ab519d',
    950: '#000000',
  },
}
SCSS
$custom: #ab519d;
$custom-light: #c686ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ab519d",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 157
  },
  "hsl": {
    "h": 309.333,
    "s": 35.714,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57304,
    "c": 0.15082,
    "h": 333.6
  },
  "luminance": 0.16977
}

Semantic roles & 50–950 ramp

primary
#AB519D
secondary
#97C19E
accent
#CC6D5C
background
#FCF8FB
surface
#F8F0F6
border
#D1CBD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AB519D

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

Preview Lab → · Contrast checker → · Palette generator →

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