#AC31DB#AC31DB

#AC31DB is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.6% C 0.247 H 314.3°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AC31DB
RGBrgb(172, 49, 219)
HSLhsl(283, 70%, 53%)
HSVhsv(283, 78%, 86%)
CMYKcmyk(21.5%, 77.6%, 0%, 14.1%)
CIE-LABlab(47.08, 71.88, -62.59)
CIE-LCHlch(47.08, 95.31, 318.95°)
OKLaboklab(57.61% 0.1727 -0.1769)
OKLCHoklch(57.61% 0.247 314.3)
XYZxyz(30.8956, 16.0828, 68.4809)
Luminance0.1608 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC31DB #60DB31
analogous
#5731DB #AC31DB #DB31B5
triadic
#AC31DB #DBAC31 #31DBAC
tetradic
#AC31DB #DB5731 #60DB31 #31B5DB
square
#AC31DB #DB5731 #60DB31 #31B5DB
split-complementary
#AC31DB #B5DB31 #31DB57
monochromatic
#60167C #881FB0 #AC31DB #C165E4 #D699ED

Accessibility & contrast

On white

4.98
#AC31DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#AC31DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC31DB
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC31DB#FFFFFF#000000##FFFFFF
##AC31DB1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E0
Deuteranopia (green-blind)
#2372D7
Tritanopia (blue-blind)
#A75986
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ac31db;
/* rgb */ color: rgb(172, 49, 219);
/* oklch */ color: oklch(57.6% 0.247 314.3);
Tailwind
colors: {
  custom: {
    50: '#ca77e7',
    500: '#ac31db',
    950: '#000000',
  },
}
SCSS
$custom: #ac31db;
$custom-light: #ca77e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ac31db",
  "rgb": {
    "r": 172,
    "g": 49,
    "b": 219
  },
  "hsl": {
    "h": 283.412,
    "s": 70.248,
    "l": 52.549
  },
  "oklch": {
    "l": 0.57612,
    "c": 0.24718,
    "h": 314.3
  },
  "luminance": 0.16082
}

Semantic roles & 50–950 ramp

primary
#AC31DB
secondary
#A3D98F
accent
#ED3B6C
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AC31DB

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

Preview Lab → · Contrast checker → · Palette generator →

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