#AC31CA#AC31CA

#AC31CA is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.5% C 0.233 H 318.8°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AC31CA
RGBrgb(172, 49, 202)
HSLhsl(288, 61%, 49%)
HSVhsv(288, 76%, 79%)
CMYKcmyk(14.9%, 75.7%, 0%, 20.8%)
CIE-LABlab(45.95, 68.69, -54.65)
CIE-LCHlch(45.95, 87.77, 321.49°)
OKLaboklab(56.46% 0.1752 -0.1536)
OKLCHoklch(56.46% 0.233 318.8)
XYZxyz(28.7708, 15.2329, 57.2904)
Luminance0.1523 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC31CA #4FCA31
analogous
#5F31CA #AC31CA #CA319C
triadic
#AC31CA #CAAC31 #31CAAC
tetradic
#AC31CA #CA5F31 #4FCA31 #319CCA
square
#AC31CA #CA5F31 #4FCA31 #319CCA
split-complementary
#AC31CA #9CCA31 #31CA5F
monochromatic
#581967 #822599 #AC31CA #C160D8 #D491E4

Accessibility & contrast

On white

5.19
#AC31CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#AC31CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC31CA
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC31CA#FFFFFF#000000##FFFFFF
##AC31CA1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#3B71C7
Tritanopia (blue-blind)
#AC527C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ac31ca;
/* rgb */ color: rgb(172, 49, 202);
/* oklch */ color: oklch(56.5% 0.233 318.8);
Tailwind
colors: {
  custom: {
    50: '#c976db',
    500: '#ac31ca',
    950: '#000000',
  },
}
SCSS
$custom: #ac31ca;
$custom-light: #c976db;
$custom-dark: #000000;
JSON
{
  "hex": "#ac31ca",
  "rgb": {
    "r": 172,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 288.235,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56455,
    "c": 0.23296,
    "h": 318.8
  },
  "luminance": 0.15232
}

Semantic roles & 50–950 ramp

primary
#AC31CA
secondary
#96CF88
accent
#E44463
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AC31CA

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

Preview Lab → · Contrast checker → · Palette generator →

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