#AB31A5#AB31A5

#AB31A5 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.1% C 0.203 H 330.1°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#AB31A5
RGBrgb(171, 49, 165)
HSLhsl(303, 55%, 43%)
HSVhsv(303, 71%, 67%)
CMYKcmyk(0%, 71.3%, 3.5%, 32.9%)
CIE-LABlab(43.61, 62.05, -36.67)
CIE-LCHlch(43.61, 72.07, 329.42°)
OKLaboklab(54.06% 0.1757 -0.1011)
OKLCHoklch(54.06% 0.203 330.1)
XYZxyz(24.6843, 13.5730, 36.9098)
Luminance0.1357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31A5 #31AB37
analogous
#7431AB #AB31A5 #AB3168
triadic
#AB31A5 #A5AB31 #31A5AB
tetradic
#AB31A5 #AB7431 #31AB37 #3168AB
square
#AB31A5 #AB7431 #31AB37 #3168AB
split-complementary
#AB31A5 #68AB31 #31AB74
monochromatic
#4C1649 #7B2377 #AB31A5 #CC4DC6 #DA7DD5

Accessibility & contrast

On white

5.65
#AB31A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#AB31A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB31A5
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31A5#FFFFFF#000000##FFFFFF
##AB31A51.005.653.715.65
#FFFFFF5.651.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245CA8
Deuteranopia (green-blind)
#556DA2
Tritanopia (blue-blind)
#B14168
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab31a5;
/* rgb */ color: rgb(171, 49, 165);
/* oklch */ color: oklch(54.1% 0.203 330.1);
Tailwind
colors: {
  custom: {
    50: '#c875c0',
    500: '#ab31a5',
    950: '#000000',
  },
}
SCSS
$custom: #ab31a5;
$custom-light: #c875c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31a5",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 302.951,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54058,
    "c": 0.20274,
    "h": 330.1
  },
  "luminance": 0.13571
}

Semantic roles & 50–950 ramp

primary
#AB31A5
secondary
#75C279
accent
#DF5049
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB31A5

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

Preview Lab → · Contrast checker → · Palette generator →

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