#AB31A9#AB31A9

#AB31A9 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.3% C 0.206 H 328.7°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#AB31A9
RGBrgb(171, 49, 169)
HSLhsl(301, 55%, 43%)
HSVhsv(301, 71%, 67%)
CMYKcmyk(0%, 71.3%, 1.2%, 32.9%)
CIE-LABlab(43.83, 62.70, -38.71)
CIE-LCHlch(43.83, 73.69, 328.31°)
OKLaboklab(54.28% 0.1758 -0.1071)
OKLCHoklch(54.28% 0.206 328.7)
XYZxyz(25.0541, 13.7210, 38.8572)
Luminance0.1372 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31A9 #31AB33
analogous
#7031AB #AB31A9 #AB316C
triadic
#AB31A9 #A9AB31 #31A9AB
tetradic
#AB31A9 #AB7031 #31AB33 #316CAB
square
#AB31A9 #AB7031 #31AB33 #316CAB
split-complementary
#AB31A9 #6CAB31 #31AB70
monochromatic
#4C164B #7B237A #AB31A9 #CC4DCA #DA7DD8

Accessibility & contrast

On white

5.61
#AB31A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB31A9
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31A9#FFFFFF#000000##FFFFFF
##AB31A91.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5DAC
Deuteranopia (green-blind)
#536DA6
Tritanopia (blue-blind)
#B1426A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab31a9;
/* rgb */ color: rgb(171, 49, 169);
/* oklch */ color: oklch(54.3% 0.206 328.7);
Tailwind
colors: {
  custom: {
    50: '#c875c3',
    500: '#ab31a9',
    950: '#000000',
  },
}
SCSS
$custom: #ab31a9;
$custom-light: #c875c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31a9",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 169
  },
  "hsl": {
    "h": 300.984,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54283,
    "c": 0.20583,
    "h": 328.7
  },
  "luminance": 0.13719
}

Semantic roles & 50–950 ramp

primary
#AB31A9
secondary
#75C277
accent
#DF4B49
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AB31A9

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

Preview Lab → · Contrast checker → · Palette generator →

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