#AC31B1#AC31B1

#AC31B1 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.9% C 0.213 H 326.3°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#AC31B1
RGBrgb(172, 49, 177)
HSLhsl(298, 57%, 44%)
HSVhsv(298, 72%, 69%)
CMYKcmyk(2.8%, 72.3%, 0%, 30.6%)
CIE-LABlab(44.44, 64.26, -42.47)
CIE-LCHlch(44.44, 77.03, 326.54°)
OKLaboklab(54.89% 0.1769 -0.118)
OKLCHoklch(54.89% 0.213 326.3)
XYZxyz(26.0469, 14.1434, 42.9445)
Luminance0.1414 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC31B1 #36B131
analogous
#6C31B1 #AC31B1 #B13176
triadic
#AC31B1 #B1AC31 #31B1AC
tetradic
#AC31B1 #B16C31 #36B131 #3176B1
square
#AC31B1 #B16C31 #36B131 #3176B1
split-complementary
#AC31B1 #76B131 #31B16C
monochromatic
#4F1651 #7D2481 #AC31B1 #CA51CF #D880DC

Accessibility & contrast

On white

5.49
#AC31B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#AC31B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC31B1
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC31B1#FFFFFF#000000##FFFFFF
##AC31B11.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105FB5
Deuteranopia (green-blind)
#4F6EAE
Tritanopia (blue-blind)
#B1466E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ac31b1;
/* rgb */ color: rgb(172, 49, 177);
/* oklch */ color: oklch(54.9% 0.213 326.3);
Tailwind
colors: {
  custom: {
    50: '#c875c9',
    500: '#ac31b1',
    950: '#000000',
  },
}
SCSS
$custom: #ac31b1;
$custom-light: #c875c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ac31b1",
  "rgb": {
    "r": 172,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 297.656,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54894,
    "c": 0.21261,
    "h": 326.3
  },
  "luminance": 0.14142
}

Semantic roles & 50–950 ramp

primary
#AC31B1
secondary
#7CC579
accent
#E0484E
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AC31B1

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

Preview Lab → · Contrast checker → · Palette generator →

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