#AC31AC#AC31AC

#AC31AC is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.6% C 0.209 H 328.0°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#AC31AC
RGBrgb(172, 49, 172)
HSLhsl(300, 56%, 43%)
HSVhsv(300, 72%, 67%)
CMYKcmyk(0%, 71.5%, 0%, 32.5%)
CIE-LABlab(44.16, 63.42, -39.96)
CIE-LCHlch(44.16, 74.96, 327.79°)
OKLaboklab(54.6% 0.1769 -0.1107)
OKLCHoklch(54.6% 0.209 328)
XYZxyz(25.5576, 13.9477, 40.3678)
Luminance0.1395 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC31AC #31AC31
analogous
#6E31AC #AC31AC #AC316E
triadic
#AC31AC #ACAC31 #31ACAC
tetradic
#AC31AC #AC6E31 #31AC31 #316EAC
square
#AC31AC #AC6E31 #31AC31 #316EAC
split-complementary
#AC31AC #6EAC31 #31AC6E
monochromatic
#4D164D #7C237C #AC31AC #CC4ECC #DA7DDA

Accessibility & contrast

On white

5.54
#AC31AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#AC31AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC31AC
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC31AC#FFFFFF#000000##FFFFFF
##AC31AC1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5EAF
Deuteranopia (green-blind)
#526EA9
Tritanopia (blue-blind)
#B1446C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ac31ac;
/* rgb */ color: rgb(172, 49, 172);
/* oklch */ color: oklch(54.6% 0.209 328.0);
Tailwind
colors: {
  custom: {
    50: '#c875c5',
    500: '#ac31ac',
    950: '#000000',
  },
}
SCSS
$custom: #ac31ac;
$custom-light: #c875c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ac31ac",
  "rgb": {
    "r": 172,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 300,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54603,
    "c": 0.20868,
    "h": 328
  },
  "luminance": 0.13946
}

Semantic roles & 50–950 ramp

primary
#AC31AC
secondary
#76C376
accent
#DF4949
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AC31AC

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

Preview Lab → · Contrast checker → · Palette generator →

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