#AB31AD#AB31AD

#AB31AD is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.5% C 0.209 H 327.3°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#AB31AD
RGBrgb(171, 49, 173)
HSLhsl(299, 56%, 44%)
HSVhsv(299, 72%, 68%)
CMYKcmyk(1.2%, 71.7%, 0%, 32.2%)
CIE-LABlab(44.05, 63.37, -40.73)
CIE-LCHlch(44.05, 75.33, 327.27°)
OKLaboklab(54.51% 0.1758 -0.1129)
OKLCHoklch(54.51% 0.209 327.3)
XYZxyz(25.4353, 13.8735, 40.8652)
Luminance0.1387 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31AD #33AD31
analogous
#6D31AD #AB31AD #AD3171
triadic
#AB31AD #ADAB31 #31ADAB
tetradic
#AB31AD #AD6D31 #33AD31 #3171AD
square
#AB31AD #AD6D31 #33AD31 #3171AD
split-complementary
#AB31AD #71AD31 #31AD6D
monochromatic
#4D164E #7C237D #AB31AD #CB4ECD #D97EDA

Accessibility & contrast

On white

5.56
#AB31AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#AB31AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB31AD
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31AD#FFFFFF#000000##FFFFFF
##AB31AD1.005.563.775.56
#FFFFFF5.561.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175EB0
Deuteranopia (green-blind)
#506EAA
Tritanopia (blue-blind)
#B0446C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab31ad;
/* rgb */ color: rgb(171, 49, 173);
/* oklch */ color: oklch(54.5% 0.209 327.3);
Tailwind
colors: {
  custom: {
    50: '#c875c6',
    500: '#ab31ad',
    950: '#000000',
  },
}
SCSS
$custom: #ab31ad;
$custom-light: #c875c6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31ad",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 299.032,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54513,
    "c": 0.20897,
    "h": 327.3
  },
  "luminance": 0.13872
}

Semantic roles & 50–950 ramp

primary
#AB31AD
secondary
#78C377
accent
#DF494B
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB31AD

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

Preview Lab → · Contrast checker → · Palette generator →

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