#AB31B1#AB31B1

#AB31B1 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.7% C 0.212 H 326.0°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#AB31B1
RGBrgb(171, 49, 177)
HSLhsl(297, 57%, 44%)
HSVhsv(297, 72%, 69%)
CMYKcmyk(3.4%, 72.3%, 0%, 30.6%)
CIE-LABlab(44.28, 64.04, -42.73)
CIE-LCHlch(44.28, 76.99, 326.29°)
OKLaboklab(54.75% 0.1758 -0.1188)
OKLCHoklch(54.75% 0.212 326)
XYZxyz(25.8282, 14.0306, 42.9342)
Luminance0.1403 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31B1 #37B131
analogous
#6B31B1 #AB31B1 #B13177
triadic
#AB31B1 #B1AB31 #31B1AB
tetradic
#AB31B1 #B16B31 #37B131 #3177B1
square
#AB31B1 #B16B31 #37B131 #3177B1
split-complementary
#AB31B1 #77B131 #31B16B
monochromatic
#4E1651 #7D2481 #AB31B1 #C951CF #D880DC

Accessibility & contrast

On white

5.52
#AB31B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#AB31B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB31B1
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31B1#FFFFFF#000000##FFFFFF
##AB31B11.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5FB5
Deuteranopia (green-blind)
#4E6EAE
Tritanopia (blue-blind)
#AF466E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ab31b1;
/* rgb */ color: rgb(171, 49, 177);
/* oklch */ color: oklch(54.7% 0.212 326.0);
Tailwind
colors: {
  custom: {
    50: '#c875c9',
    500: '#ab31b1',
    950: '#000000',
  },
}
SCSS
$custom: #ab31b1;
$custom-light: #c875c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31b1",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 297.188,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54747,
    "c": 0.21215,
    "h": 326
  },
  "luminance": 0.14029
}

Semantic roles & 50–950 ramp

primary
#AB31B1
secondary
#7CC579
accent
#E0484F
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB31B1

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

Preview Lab → · Contrast checker → · Palette generator →

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