#AB31A2#AB31A2

#AB31A2 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 53.9% C 0.200 H 331.2°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#AB31A2
RGBrgb(171, 49, 162)
HSLhsl(304, 55%, 43%)
HSVhsv(304, 71%, 67%)
CMYKcmyk(0%, 71.3%, 5.3%, 32.9%)
CIE-LABlab(43.46, 61.56, -35.13)
CIE-LCHlch(43.46, 70.88, 330.29°)
OKLaboklab(53.89% 0.1756 -0.0967)
OKLCHoklch(53.89% 0.2 331.2)
XYZxyz(24.4145, 13.4651, 35.4886)
Luminance0.1346 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31A2 #31AB3A
analogous
#7731AB #AB31A2 #AB3165
triadic
#AB31A2 #A2AB31 #31A2AB
tetradic
#AB31A2 #AB7731 #31AB3A #3165AB
square
#AB31A2 #AB7731 #31AB3A #3165AB
split-complementary
#AB31A2 #65AB31 #31AB77
monochromatic
#4C1648 #7B2375 #AB31A2 #CC4DC3 #DA7DD3

Accessibility & contrast

On white

5.69
#AB31A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#AB31A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB31A2
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31A2#FFFFFF#000000##FFFFFF
##AB31A21.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275CA5
Deuteranopia (green-blind)
#566D9F
Tritanopia (blue-blind)
#B23F66
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab31a2;
/* rgb */ color: rgb(171, 49, 162);
/* oklch */ color: oklch(53.9% 0.200 331.2);
Tailwind
colors: {
  custom: {
    50: '#c875be',
    500: '#ab31a2',
    950: '#000000',
  },
}
SCSS
$custom: #ab31a2;
$custom-light: #c875be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31a2",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 304.426,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53893,
    "c": 0.20045,
    "h": 331.2
  },
  "luminance": 0.13463
}

Semantic roles & 50–950 ramp

primary
#AB31A2
secondary
#75C27B
accent
#DF5449
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB31A2

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

Preview Lab → · Contrast checker → · Palette generator →

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