#AB31A3#AB31A3

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

Color values

HEX#AB31A3
RGBrgb(171, 49, 163)
HSLhsl(304, 55%, 43%)
HSVhsv(304, 71%, 67%)
CMYKcmyk(0%, 71.3%, 4.7%, 32.9%)
CIE-LABlab(43.51, 61.72, -35.64)
CIE-LCHlch(43.51, 71.28, 330.00°)
OKLaboklab(53.95% 0.1756 -0.0982)
OKLCHoklch(53.95% 0.201 330.8)
XYZxyz(24.5037, 13.5008, 35.9586)
Luminance0.1350 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31A3 #31AB39
analogous
#7631AB #AB31A3 #AB3166
triadic
#AB31A3 #A3AB31 #31A3AB
tetradic
#AB31A3 #AB7631 #31AB39 #3166AB
square
#AB31A3 #AB7631 #31AB39 #3166AB
split-complementary
#AB31A3 #66AB31 #31AB76
monochromatic
#4C1648 #7B2376 #AB31A3 #CC4DC4 #DA7DD4

Accessibility & contrast

On white

5.68
#AB31A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#AB31A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB31A3
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31A3#FFFFFF#000000##FFFFFF
##AB31A31.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265CA6
Deuteranopia (green-blind)
#566DA0
Tritanopia (blue-blind)
#B24067
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab31a3;
/* rgb */ color: rgb(171, 49, 163);
/* oklch */ color: oklch(53.9% 0.201 330.8);
Tailwind
colors: {
  custom: {
    50: '#c875be',
    500: '#ab31a3',
    950: '#000000',
  },
}
SCSS
$custom: #ab31a3;
$custom-light: #c875be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31a3",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 163
  },
  "hsl": {
    "h": 303.934,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53948,
    "c": 0.20121,
    "h": 330.8
  },
  "luminance": 0.13499
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB31A3

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

Preview Lab → · Contrast checker → · Palette generator →

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