#AC31AB#AC31AB

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

Color values

HEX#AC31AB
RGBrgb(172, 49, 171)
HSLhsl(300, 56%, 43%)
HSVhsv(300, 72%, 67%)
CMYKcmyk(0%, 71.5%, 0.6%, 32.5%)
CIE-LABlab(44.10, 63.26, -39.45)
CIE-LCHlch(44.10, 74.55, 328.05°)
OKLaboklab(54.55% 0.1769 -0.1092)
OKLCHoklch(54.55% 0.208 328.3)
XYZxyz(25.4620, 13.9094, 39.8639)
Luminance0.1391 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC31AB #31AC32
analogous
#6F31AC #AC31AB #AC316D
triadic
#AC31AB #ABAC31 #31ABAC
tetradic
#AC31AB #AC6F31 #31AC32 #316DAC
square
#AC31AB #AC6F31 #31AC32 #316DAC
split-complementary
#AC31AB #6DAC31 #31AC6F
monochromatic
#4D164C #7C237C #AC31AB #CC4ECB #DA7DD9

Accessibility & contrast

On white

5.55
#AC31AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#AC31AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC31AB
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC31AB#FFFFFF#000000##FFFFFF
##AC31AB1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5EAE
Deuteranopia (green-blind)
#526EA8
Tritanopia (blue-blind)
#B2436B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ac31ab;
/* rgb */ color: rgb(172, 49, 171);
/* oklch */ color: oklch(54.5% 0.208 328.3);
Tailwind
colors: {
  custom: {
    50: '#c875c4',
    500: '#ac31ab',
    950: '#000000',
  },
}
SCSS
$custom: #ac31ab;
$custom-light: #c875c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ac31ab",
  "rgb": {
    "r": 172,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 300.488,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54546,
    "c": 0.20789,
    "h": 328.3
  },
  "luminance": 0.13908
}

Semantic roles & 50–950 ramp

primary
#AC31AB
secondary
#76C377
accent
#DF4A49
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AC31AB

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

Preview Lab → · Contrast checker → · Palette generator →

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