#AB31A4#AB31A4

#AB31A4 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.0% C 0.202 H 330.4°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#AB31A4
RGBrgb(171, 49, 164)
HSLhsl(303, 55%, 43%)
HSVhsv(303, 71%, 67%)
CMYKcmyk(0%, 71.3%, 4.1%, 32.9%)
CIE-LABlab(43.56, 61.88, -36.16)
CIE-LCHlch(43.56, 71.67, 329.70°)
OKLaboklab(54% 0.1757 -0.0997)
OKLCHoklch(54% 0.202 330.4)
XYZxyz(24.5936, 13.5368, 36.4323)
Luminance0.1353 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31A4 #31AB38
analogous
#7531AB #AB31A4 #AB3167
triadic
#AB31A4 #A4AB31 #31A4AB
tetradic
#AB31A4 #AB7531 #31AB38 #3167AB
square
#AB31A4 #AB7531 #31AB38 #3167AB
split-complementary
#AB31A4 #67AB31 #31AB75
monochromatic
#4C1649 #7B2376 #AB31A4 #CC4DC5 #DA7DD4

Accessibility & contrast

On white

5.66
#AB31A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB31A4
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31A4#FFFFFF#000000##FFFFFF
##AB31A41.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255CA7
Deuteranopia (green-blind)
#556DA1
Tritanopia (blue-blind)
#B24067
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab31a4;
/* rgb */ color: rgb(171, 49, 164);
/* oklch */ color: oklch(54.0% 0.202 330.4);
Tailwind
colors: {
  custom: {
    50: '#c875bf',
    500: '#ab31a4',
    950: '#000000',
  },
}
SCSS
$custom: #ab31a4;
$custom-light: #c875bf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31a4",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 303.443,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54003,
    "c": 0.20197,
    "h": 330.4
  },
  "luminance": 0.13535
}

Semantic roles & 50–950 ramp

primary
#AB31A4
secondary
#75C27A
accent
#DF5249
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB31A4

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

Preview Lab → · Contrast checker → · Palette generator →

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