#AC31A6#AC31A6

#AC31A6 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.3% C 0.204 H 330.1°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#AC31A6
RGBrgb(172, 49, 166)
HSLhsl(303, 56%, 43%)
HSVhsv(303, 72%, 67%)
CMYKcmyk(0%, 71.5%, 3.5%, 32.5%)
CIE-LABlab(43.83, 62.44, -36.91)
CIE-LCHlch(43.83, 72.53, 329.41°)
OKLaboklab(54.26% 0.1768 -0.1018)
OKLCHoklch(54.26% 0.204 330.1)
XYZxyz(24.9944, 13.7224, 37.4013)
Luminance0.1372 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC31A6 #31AC37
analogous
#7431AC #AC31A6 #AC3168
triadic
#AC31A6 #A6AC31 #31A6AC
tetradic
#AC31A6 #AC7431 #31AC37 #3168AC
square
#AC31A6 #AC7431 #31AC37 #3168AC
split-complementary
#AC31A6 #68AC31 #31AC74
monochromatic
#4D164A #7C2378 #AC31A6 #CC4EC6 #DA7DD6

Accessibility & contrast

On white

5.61
#AC31A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#AC31A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC31A6
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC31A6#FFFFFF#000000##FFFFFF
##AC31A61.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235DA9
Deuteranopia (green-blind)
#556DA3
Tritanopia (blue-blind)
#B24168
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ac31a6;
/* rgb */ color: rgb(172, 49, 166);
/* oklch */ color: oklch(54.3% 0.204 330.1);
Tailwind
colors: {
  custom: {
    50: '#c875c1',
    500: '#ac31a6',
    950: '#000000',
  },
}
SCSS
$custom: #ac31a6;
$custom-light: #c875c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ac31a6",
  "rgb": {
    "r": 172,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 302.927,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54264,
    "c": 0.20402,
    "h": 330.1
  },
  "luminance": 0.1372
}

Semantic roles & 50–950 ramp

primary
#AC31A6
secondary
#76C37A
accent
#DF5049
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AC31A6

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

Preview Lab → · Contrast checker → · Palette generator →

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