#AC31AA#AC31AA

#AC31AA is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.5% C 0.207 H 328.7°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#AC31AA
RGBrgb(172, 49, 170)
HSLhsl(301, 56%, 43%)
HSVhsv(301, 72%, 67%)
CMYKcmyk(0%, 71.5%, 1.2%, 32.5%)
CIE-LABlab(44.05, 63.09, -38.95)
CIE-LCHlch(44.05, 74.14, 328.31°)
OKLaboklab(54.49% 0.1769 -0.1077)
OKLCHoklch(54.49% 0.207 328.7)
XYZxyz(25.3670, 13.8714, 39.3638)
Luminance0.1387 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC31AA #31AC33
analogous
#7031AC #AC31AA #AC316C
triadic
#AC31AA #AAAC31 #31AAAC
tetradic
#AC31AA #AC7031 #31AC33 #316CAC
square
#AC31AA #AC7031 #31AC33 #316CAC
split-complementary
#AC31AA #6CAC31 #31AC70
monochromatic
#4D164C #7C237B #AC31AA #CC4ECA #DA7DD9

Accessibility & contrast

On white

5.56
#AC31AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#AC31AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC31AA
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC31AA#FFFFFF#000000##FFFFFF
##AC31AA1.005.563.775.56
#FFFFFF5.561.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5EAD
Deuteranopia (green-blind)
#536EA7
Tritanopia (blue-blind)
#B2436A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ac31aa;
/* rgb */ color: rgb(172, 49, 170);
/* oklch */ color: oklch(54.5% 0.207 328.7);
Tailwind
colors: {
  custom: {
    50: '#c875c4',
    500: '#ac31aa',
    950: '#000000',
  },
}
SCSS
$custom: #ac31aa;
$custom-light: #c875c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ac31aa",
  "rgb": {
    "r": 172,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 300.976,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54489,
    "c": 0.20712,
    "h": 328.7
  },
  "luminance": 0.1387
}

Semantic roles & 50–950 ramp

primary
#AC31AA
secondary
#76C377
accent
#DF4B49
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AC31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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