#AC31A8#AC31A8

#AC31A8 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.4% C 0.206 H 329.4°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#AC31A8
RGBrgb(172, 49, 168)
HSLhsl(302, 56%, 43%)
HSVhsv(302, 72%, 67%)
CMYKcmyk(0%, 71.5%, 2.3%, 32.5%)
CIE-LABlab(43.94, 62.76, -37.93)
CIE-LCHlch(43.94, 73.33, 328.85°)
OKLaboklab(54.38% 0.1769 -0.1048)
OKLCHoklch(54.38% 0.206 329.4)
XYZxyz(25.1793, 13.7963, 38.3750)
Luminance0.1379 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC31A8 #31AC35
analogous
#7231AC #AC31A8 #AC316A
triadic
#AC31A8 #A8AC31 #31A8AC
tetradic
#AC31A8 #AC7231 #31AC35 #316AAC
square
#AC31A8 #AC7231 #31AC35 #316AAC
split-complementary
#AC31A8 #6AAC31 #31AC72
monochromatic
#4D164B #7C2379 #AC31A8 #CC4EC8 #DA7DD7

Accessibility & contrast

On white

5.59
#AC31A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AC31A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC31A8
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC31A8#FFFFFF#000000##FFFFFF
##AC31A81.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215DAB
Deuteranopia (green-blind)
#546EA5
Tritanopia (blue-blind)
#B24269
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ac31a8;
/* rgb */ color: rgb(172, 49, 168);
/* oklch */ color: oklch(54.4% 0.206 329.4);
Tailwind
colors: {
  custom: {
    50: '#c875c2',
    500: '#ac31a8',
    950: '#000000',
  },
}
SCSS
$custom: #ac31a8;
$custom-light: #c875c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ac31a8",
  "rgb": {
    "r": 172,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 301.951,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54376,
    "c": 0.20557,
    "h": 329.4
  },
  "luminance": 0.13794
}

Semantic roles & 50–950 ramp

primary
#AC31A8
secondary
#76C378
accent
#DF4E49
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AC31A8

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

Preview Lab → · Contrast checker → · Palette generator →

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