#AB5DA7#AB5DA7

#AB5DA7 is a mid, vivid purple. Relative luminance 0.193; OKLCH L 59.5% C 0.139 H 329.0°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AB5DA7
RGBrgb(171, 93, 167)
HSLhsl(303, 32%, 52%)
HSVhsv(303, 46%, 67%)
CMYKcmyk(0%, 45.6%, 2.3%, 32.9%)
CIE-LABlab(51.01, 42.59, -26.27)
CIE-LCHlch(51.01, 50.05, 328.33°)
OKLaboklab(59.51% 0.1195 -0.0717)
OKLCHoklch(59.51% 0.139 329)
XYZxyz(27.6836, 19.2781, 38.8146)
Luminance0.1928 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5DA7 #5DAB61
analogous
#885DAB #AB5DA7 #AB5D80
triadic
#AB5DA7 #A7AB5D #5DA7AB
tetradic
#AB5DA7 #AB885D #5DAB61 #5D80AB
square
#AB5DA7 #AB885D #5DAB61 #5D80AB
split-complementary
#AB5DA7 #80AB5D #5DAB88
monochromatic
#5D305B #864582 #AB5DA7 #C085BD #D5AED3

Accessibility & contrast

On white

4.33
#AB5DA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#AB5DA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5DA7
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5DA7#FFFFFF#000000##000000
##AB5DA71.004.334.864.86
#FFFFFF4.331.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5873AA
Deuteranopia (green-blind)
#6E7DA5
Tritanopia (blue-blind)
#B0647A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab5da7;
/* rgb */ color: rgb(171, 93, 167);
/* oklch */ color: oklch(59.5% 0.139 329.0);
Tailwind
colors: {
  custom: {
    50: '#c68dc1',
    500: '#ab5da7',
    950: '#000000',
  },
}
SCSS
$custom: #ab5da7;
$custom-light: #c68dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5da7",
  "rgb": {
    "r": 171,
    "g": 93,
    "b": 167
  },
  "hsl": {
    "h": 303.077,
    "s": 31.707,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59508,
    "c": 0.13935,
    "h": 329
  },
  "luminance": 0.19277
}

Semantic roles & 50–950 ramp

primary
#AB5DA7
secondary
#A1C3A3
accent
#C86560
background
#FCF8FB
surface
#F8F0F7
border
#D1CBD0
text
#130C12
muted
#827D81

Preview Lab

Preview with #AB5DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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