#AC31A5#AC31A5

#AC31A5 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.2% C 0.203 H 330.4°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#AC31A5
RGBrgb(172, 49, 165)
HSLhsl(303, 56%, 43%)
HSVhsv(303, 72%, 67%)
CMYKcmyk(0%, 71.5%, 4.1%, 32.5%)
CIE-LABlab(43.78, 62.28, -36.40)
CIE-LCHlch(43.78, 72.13, 329.70°)
OKLaboklab(54.21% 0.1768 -0.1003)
OKLCHoklch(54.21% 0.203 330.4)
XYZxyz(24.9030, 13.6858, 36.9200)
Luminance0.1368 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC31A5 #31AC38
analogous
#7531AC #AC31A5 #AC3167
triadic
#AC31A5 #A5AC31 #31A5AC
tetradic
#AC31A5 #AC7531 #31AC38 #3167AC
square
#AC31A5 #AC7531 #31AC38 #3167AC
split-complementary
#AC31A5 #67AC31 #31AC75
monochromatic
#4D164A #7C2377 #AC31A5 #CC4EC5 #DA7DD5

Accessibility & contrast

On white

5.62
#AC31A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AC31A5
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC31A5#FFFFFF#000000##FFFFFF
##AC31A51.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255DA8
Deuteranopia (green-blind)
#566DA2
Tritanopia (blue-blind)
#B34068
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ac31a5;
/* rgb */ color: rgb(172, 49, 165);
/* oklch */ color: oklch(54.2% 0.203 330.4);
Tailwind
colors: {
  custom: {
    50: '#c875c0',
    500: '#ac31a5',
    950: '#000000',
  },
}
SCSS
$custom: #ac31a5;
$custom-light: #c875c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ac31a5",
  "rgb": {
    "r": 172,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 303.415,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54208,
    "c": 0.20325,
    "h": 330.4
  },
  "luminance": 0.13684
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AC31A5

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

Preview Lab → · Contrast checker → · Palette generator →

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