#AB31AC#AB31AC

#AB31AC is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.5% C 0.208 H 327.6°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#AB31AC
RGBrgb(171, 49, 172)
HSLhsl(300, 56%, 43%)
HSVhsv(300, 72%, 67%)
CMYKcmyk(0.6%, 71.5%, 0%, 32.5%)
CIE-LABlab(44.00, 63.20, -40.23)
CIE-LCHlch(44.00, 74.92, 327.52°)
OKLaboklab(54.46% 0.1758 -0.1115)
OKLCHoklch(54.46% 0.208 327.6)
XYZxyz(25.3389, 13.8349, 40.3575)
Luminance0.1383 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31AC #32AC31
analogous
#6D31AC #AB31AC #AC316F
triadic
#AB31AC #ACAB31 #31ACAB
tetradic
#AB31AC #AC6D31 #32AC31 #316FAC
square
#AB31AC #AC6D31 #32AC31 #316FAC
split-complementary
#AB31AC #6FAC31 #31AC6D
monochromatic
#4C164D #7C237C #AB31AC #CB4ECC #D97DDA

Accessibility & contrast

On white

5.58
#AB31AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB31AC
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31AC#FFFFFF#000000##FFFFFF
##AB31AC1.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195EAF
Deuteranopia (green-blind)
#516DA9
Tritanopia (blue-blind)
#B0446C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab31ac;
/* rgb */ color: rgb(171, 49, 172);
/* oklch */ color: oklch(54.5% 0.208 327.6);
Tailwind
colors: {
  custom: {
    50: '#c875c5',
    500: '#ab31ac',
    950: '#000000',
  },
}
SCSS
$custom: #ab31ac;
$custom-light: #c875c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31ac",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 299.512,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54455,
    "c": 0.20818,
    "h": 327.6
  },
  "luminance": 0.13833
}

Semantic roles & 50–950 ramp

primary
#AB31AC
secondary
#77C376
accent
#DF494A
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB31AC

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

Preview Lab → · Contrast checker → · Palette generator →

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