#AC31B6#AC31B6

#AC31B6 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.2% C 0.217 H 324.7°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#AC31B6
RGBrgb(172, 49, 182)
HSLhsl(295, 58%, 45%)
HSVhsv(295, 73%, 71%)
CMYKcmyk(5.5%, 73.1%, 0%, 28.6%)
CIE-LABlab(44.73, 65.12, -44.95)
CIE-LCHlch(44.73, 79.13, 325.38°)
OKLaboklab(55.19% 0.1768 -0.1252)
OKLCHoklch(55.19% 0.217 324.7)
XYZxyz(26.5544, 14.3464, 45.6174)
Luminance0.1434 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC31B6 #3BB631
analogous
#6A31B6 #AC31B6 #B6317D
triadic
#AC31B6 #B6AC31 #31B6AC
tetradic
#AC31B6 #B66A31 #3BB631 #317DB6
square
#AC31B6 #B66A31 #3BB631 #317DB6
split-complementary
#AC31B6 #7DB631 #31B66A
monochromatic
#511756 #7E2486 #AC31B6 #C753D1 #D784DE

Accessibility & contrast

On white

5.43
#AC31B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#AC31B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC31B6
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC31B6#FFFFFF#000000##FFFFFF
##AC31B61.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BA
Deuteranopia (green-blind)
#4C6FB3
Tritanopia (blue-blind)
#B04871
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ac31b6;
/* rgb */ color: rgb(172, 49, 182);
/* oklch */ color: oklch(55.2% 0.217 324.7);
Tailwind
colors: {
  custom: {
    50: '#c976cc',
    500: '#ac31b6',
    950: '#000000',
  },
}
SCSS
$custom: #ac31b6;
$custom-light: #c976cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ac31b6",
  "rgb": {
    "r": 172,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 295.489,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55192,
    "c": 0.21661,
    "h": 324.7
  },
  "luminance": 0.14345
}

Semantic roles & 50–950 ramp

primary
#AC31B6
secondary
#81C77C
accent
#E14753
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AC31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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