#AB31AB#AB31AB

#AB31AB is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.4% C 0.207 H 328.0°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#AB31AB
RGBrgb(171, 49, 171)
HSLhsl(300, 55%, 43%)
HSVhsv(300, 71%, 67%)
CMYKcmyk(0%, 71.3%, 0%, 32.9%)
CIE-LABlab(43.94, 63.03, -39.72)
CIE-LCHlch(43.94, 74.50, 327.78°)
OKLaboklab(54.4% 0.1758 -0.11)
OKLCHoklch(54.4% 0.207 328)
XYZxyz(25.2433, 13.7966, 39.8536)
Luminance0.1379 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31AB #31AB31
analogous
#6E31AB #AB31AB #AB316E
triadic
#AB31AB #ABAB31 #31ABAB
tetradic
#AB31AB #AB6E31 #31AB31 #316EAB
square
#AB31AB #AB6E31 #31AB31 #316EAB
split-complementary
#AB31AB #6EAB31 #31AB6E
monochromatic
#4C164C #7B237B #AB31AB #CC4DCC #DA7DDA

Accessibility & contrast

On white

5.59
#AB31AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AB31AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB31AB
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31AB#FFFFFF#000000##FFFFFF
##AB31AB1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5EAE
Deuteranopia (green-blind)
#516DA8
Tritanopia (blue-blind)
#B0436B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab31ab;
/* rgb */ color: rgb(171, 49, 171);
/* oklch */ color: oklch(54.4% 0.207 328.0);
Tailwind
colors: {
  custom: {
    50: '#c875c4',
    500: '#ab31ab',
    950: '#000000',
  },
}
SCSS
$custom: #ab31ab;
$custom-light: #c875c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31ab",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 300,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54397,
    "c": 0.2074,
    "h": 328
  },
  "luminance": 0.13795
}

Semantic roles & 50–950 ramp

primary
#AB31AB
secondary
#75C275
accent
#DF4949
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB31AB

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

Preview Lab → · Contrast checker → · Palette generator →

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