#AB31A8#AB31A8

#AB31A8 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.2% C 0.205 H 329.0°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#AB31A8
RGBrgb(171, 49, 168)
HSLhsl(301, 55%, 43%)
HSVhsv(301, 71%, 67%)
CMYKcmyk(0%, 71.3%, 1.8%, 32.9%)
CIE-LABlab(43.78, 62.54, -38.20)
CIE-LCHlch(43.78, 73.28, 328.58°)
OKLaboklab(54.23% 0.1758 -0.1056)
OKLCHoklch(54.23% 0.205 329)
XYZxyz(24.9606, 13.6835, 38.3647)
Luminance0.1368 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31A8 #31AB34
analogous
#7131AB #AB31A8 #AB316B
triadic
#AB31A8 #A8AB31 #31A8AB
tetradic
#AB31A8 #AB7131 #31AB34 #316BAB
square
#AB31A8 #AB7131 #31AB34 #316BAB
split-complementary
#AB31A8 #6BAB31 #31AB71
monochromatic
#4C164B #7B2379 #AB31A8 #CC4DC9 #DA7DD7

Accessibility & contrast

On white

5.62
#AB31A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#AB31A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB31A8
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31A8#FFFFFF#000000##FFFFFF
##AB31A81.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205DAB
Deuteranopia (green-blind)
#536DA5
Tritanopia (blue-blind)
#B14269
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab31a8;
/* rgb */ color: rgb(171, 49, 168);
/* oklch */ color: oklch(54.2% 0.205 329.0);
Tailwind
colors: {
  custom: {
    50: '#c875c2',
    500: '#ab31a8',
    950: '#000000',
  },
}
SCSS
$custom: #ab31a8;
$custom-light: #c875c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31a8",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 301.475,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54226,
    "c": 0.20506,
    "h": 329
  },
  "luminance": 0.13682
}

Semantic roles & 50–950 ramp

primary
#AB31A8
secondary
#75C277
accent
#DF4D49
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AB31A8

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

Preview Lab → · Contrast checker → · Palette generator →

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