#AC31BB#AC31BB

#AC31BB is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.5% C 0.221 H 323.1°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#AC31BB
RGBrgb(172, 49, 187)
HSLhsl(293, 58%, 46%)
HSVhsv(293, 74%, 73%)
CMYKcmyk(8%, 73.8%, 0%, 26.7%)
CIE-LABlab(45.02, 65.99, -47.41)
CIE-LCHlch(45.02, 81.26, 324.30°)
OKLaboklab(55.5% 0.1765 -0.1324)
OKLCHoklch(55.5% 0.221 323.1)
XYZxyz(27.0804, 14.5568, 48.3874)
Luminance0.1456 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC31BB #40BB31
analogous
#6731BB #AC31BB #BB3185
triadic
#AC31BB #BBAC31 #31BBAC
tetradic
#AC31BB #BB6731 #40BB31 #3185BB
square
#AC31BB #BB6731 #40BB31 #3185BB
split-complementary
#AC31BB #85BB31 #31BB67
monochromatic
#53185A #7F248B #AC31BB #C556D3 #D687E0

Accessibility & contrast

On white

5.37
#AC31BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#AC31BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC31BB
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC31BB#FFFFFF#000000##FFFFFF
##AC31BB1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#486FB8
Tritanopia (blue-blind)
#AF4B74
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ac31bb;
/* rgb */ color: rgb(172, 49, 187);
/* oklch */ color: oklch(55.5% 0.221 323.1);
Tailwind
colors: {
  custom: {
    50: '#c976d0',
    500: '#ac31bb',
    950: '#000000',
  },
}
SCSS
$custom: #ac31bb;
$custom-light: #c976d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ac31bb",
  "rgb": {
    "r": 172,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 293.478,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.55497,
    "c": 0.22064,
    "h": 323.1
  },
  "luminance": 0.14555
}

Semantic roles & 50–950 ramp

primary
#AC31BB
secondary
#87C97F
accent
#E24657
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AC31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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