#AC31A3#AC31A3

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

Color values

HEX#AC31A3
RGBrgb(172, 49, 163)
HSLhsl(304, 56%, 43%)
HSVhsv(304, 72%, 67%)
CMYKcmyk(0%, 71.5%, 5.2%, 32.5%)
CIE-LABlab(43.67, 61.96, -35.37)
CIE-LCHlch(43.67, 71.34, 330.28°)
OKLaboklab(54.1% 0.1767 -0.0974)
OKLCHoklch(54.1% 0.202 331.1)
XYZxyz(24.7224, 13.6136, 35.9688)
Luminance0.1361 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC31A3 #31AC3A
analogous
#7731AC #AC31A3 #AC3165
triadic
#AC31A3 #A3AC31 #31A3AC
tetradic
#AC31A3 #AC7731 #31AC3A #3165AC
square
#AC31A3 #AC7731 #31AC3A #3165AC
split-complementary
#AC31A3 #65AC31 #31AC77
monochromatic
#4D1649 #7C2376 #AC31A3 #CC4EC3 #DA7DD3

Accessibility & contrast

On white

5.64
#AC31A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#AC31A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC31A3
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC31A3#FFFFFF#000000##FFFFFF
##AC31A31.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275CA6
Deuteranopia (green-blind)
#576DA0
Tritanopia (blue-blind)
#B33F67
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ac31a3;
/* rgb */ color: rgb(172, 49, 163);
/* oklch */ color: oklch(54.1% 0.202 331.1);
Tailwind
colors: {
  custom: {
    50: '#c875be',
    500: '#ac31a3',
    950: '#000000',
  },
}
SCSS
$custom: #ac31a3;
$custom-light: #c875be;
$custom-dark: #000000;
JSON
{
  "hex": "#ac31a3",
  "rgb": {
    "r": 172,
    "g": 49,
    "b": 163
  },
  "hsl": {
    "h": 304.39,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54098,
    "c": 0.20174,
    "h": 331.1
  },
  "luminance": 0.13612
}

Semantic roles & 50–950 ramp

primary
#AC31A3
secondary
#76C37C
accent
#DF5449
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AC31A3

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

Preview Lab → · Contrast checker → · Palette generator →

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