#AC31A4#AC31A4

#AC31A4 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.2% C 0.202 H 330.8°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#AC31A4
RGBrgb(172, 49, 164)
HSLhsl(304, 56%, 43%)
HSVhsv(304, 72%, 67%)
CMYKcmyk(0%, 71.5%, 4.7%, 32.5%)
CIE-LABlab(43.73, 62.12, -35.88)
CIE-LCHlch(43.73, 71.74, 329.98°)
OKLaboklab(54.15% 0.1767 -0.0989)
OKLCHoklch(54.15% 0.202 330.8)
XYZxyz(24.8123, 13.6496, 36.4426)
Luminance0.1365 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC31A4 #31AC39
analogous
#7631AC #AC31A4 #AC3167
triadic
#AC31A4 #A4AC31 #31A4AC
tetradic
#AC31A4 #AC7631 #31AC39 #3167AC
square
#AC31A4 #AC7631 #31AC39 #3167AC
split-complementary
#AC31A4 #67AC31 #31AC76
monochromatic
#4D1649 #7C2377 #AC31A4 #CC4EC4 #DA7DD4

Accessibility & contrast

On white

5.63
#AC31A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#AC31A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC31A4
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC31A4#FFFFFF#000000##FFFFFF
##AC31A41.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265CA7
Deuteranopia (green-blind)
#566DA1
Tritanopia (blue-blind)
#B34067
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ac31a4;
/* rgb */ color: rgb(172, 49, 164);
/* oklch */ color: oklch(54.2% 0.202 330.8);
Tailwind
colors: {
  custom: {
    50: '#c875bf',
    500: '#ac31a4',
    950: '#000000',
  },
}
SCSS
$custom: #ac31a4;
$custom-light: #c875bf;
$custom-dark: #000000;
JSON
{
  "hex": "#ac31a4",
  "rgb": {
    "r": 172,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 303.902,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54153,
    "c": 0.20249,
    "h": 330.8
  },
  "luminance": 0.13648
}

Semantic roles & 50–950 ramp

primary
#AC31A4
secondary
#76C37B
accent
#DF5349
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AC31A4

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

Preview Lab → · Contrast checker → · Palette generator →

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