#AC31A2#AC31A2

#AC31A2 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.0% C 0.201 H 331.5°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#AC31A2
RGBrgb(172, 49, 162)
HSLhsl(305, 56%, 43%)
HSVhsv(305, 72%, 67%)
CMYKcmyk(0%, 71.5%, 5.8%, 32.5%)
CIE-LABlab(43.62, 61.80, -34.86)
CIE-LCHlch(43.62, 70.95, 330.57°)
OKLaboklab(54.04% 0.1766 -0.0959)
OKLCHoklch(54.04% 0.201 331.5)
XYZxyz(24.6332, 13.5779, 35.4988)
Luminance0.1358 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC31A2 #31AC3B
analogous
#7831AC #AC31A2 #AC3164
triadic
#AC31A2 #A2AC31 #31A2AC
tetradic
#AC31A2 #AC7831 #31AC3B #3164AC
square
#AC31A2 #AC7831 #31AC3B #3164AC
split-complementary
#AC31A2 #64AC31 #31AC78
monochromatic
#4D1648 #7C2375 #AC31A2 #CC4EC2 #DA7DD3

Accessibility & contrast

On white

5.65
#AC31A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AC31A2
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC31A2#FFFFFF#000000##FFFFFF
##AC31A21.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285CA5
Deuteranopia (green-blind)
#576D9F
Tritanopia (blue-blind)
#B33F66
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ac31a2;
/* rgb */ color: rgb(172, 49, 162);
/* oklch */ color: oklch(54.0% 0.201 331.5);
Tailwind
colors: {
  custom: {
    50: '#c875be',
    500: '#ac31a2',
    950: '#000000',
  },
}
SCSS
$custom: #ac31a2;
$custom-light: #c875be;
$custom-dark: #000000;
JSON
{
  "hex": "#ac31a2",
  "rgb": {
    "r": 172,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 304.878,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54044,
    "c": 0.20098,
    "h": 331.5
  },
  "luminance": 0.13576
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AC31A2

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

Preview Lab → · Contrast checker → · Palette generator →

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