#AB31A0#AB31A0

#AB31A0 is a mid, vivid purple. Relative luminance 0.134; OKLCH L 53.8% C 0.199 H 331.9°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#AB31A0
RGBrgb(171, 49, 160)
HSLhsl(305, 55%, 43%)
HSVhsv(305, 71%, 67%)
CMYKcmyk(0%, 71.3%, 6.4%, 32.9%)
CIE-LABlab(43.35, 61.24, -34.10)
CIE-LCHlch(43.35, 70.10, 330.89°)
OKLaboklab(53.78% 0.1755 -0.0937)
OKLCHoklch(53.78% 0.199 331.9)
XYZxyz(24.2381, 13.3946, 34.5597)
Luminance0.1339 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31A0 #31AB3C
analogous
#7931AB #AB31A0 #AB3163
triadic
#AB31A0 #A0AB31 #31A0AB
tetradic
#AB31A0 #AB7931 #31AB3C #3163AB
square
#AB31A0 #AB7931 #31AB3C #3163AB
split-complementary
#AB31A0 #63AB31 #31AB79
monochromatic
#4C1647 #7B2373 #AB31A0 #CC4DC1 #DA7DD1

Accessibility & contrast

On white

5.71
#AB31A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AB31A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB31A0
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31A0#FFFFFF#000000##FFFFFF
##AB31A01.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295BA3
Deuteranopia (green-blind)
#576C9D
Tritanopia (blue-blind)
#B23E65
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab31a0;
/* rgb */ color: rgb(171, 49, 160);
/* oklch */ color: oklch(53.8% 0.199 331.9);
Tailwind
colors: {
  custom: {
    50: '#c875bc',
    500: '#ab31a0',
    950: '#000000',
  },
}
SCSS
$custom: #ab31a0;
$custom-light: #c875bc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31a0",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 160
  },
  "hsl": {
    "h": 305.41,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53784,
    "c": 0.19893,
    "h": 331.9
  },
  "luminance": 0.13393
}

Semantic roles & 50–950 ramp

primary
#AB31A0
secondary
#75C27C
accent
#DF5749
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB31A0

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

Preview Lab → · Contrast checker → · Palette generator →

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