#AC31E6#AC31E6

#AC31E6 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.4% C 0.256 H 311.7°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AC31E6
RGBrgb(172, 49, 230)
HSLhsl(281, 78%, 55%)
HSVhsv(281, 79%, 90%)
CMYKcmyk(25.2%, 78.7%, 0%, 9.8%)
CIE-LABlab(47.86, 74.01, -67.60)
CIE-LCHlch(47.86, 100.23, 317.59°)
OKLaboklab(58.4% 0.1706 -0.1916)
OKLCHoklch(58.4% 0.256 311.7)
XYZxyz(32.3918, 16.6813, 76.3611)
Luminance0.1668 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC31E6 #6BE631
analogous
#5131E6 #AC31E6 #E631C6
triadic
#AC31E6 #E6AC31 #31E6AC
tetradic
#AC31E6 #E65131 #6BE631 #31C6E6
square
#AC31E6 #E65131 #6BE631 #31C6E6
split-complementary
#AC31E6 #C6E631 #31E651
monochromatic
#64118C #8C18C2 #AC31E6 #C268ED #D89EF3

Accessibility & contrast

On white

4.84
#AC31E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#AC31E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC31E6
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC31E6#FFFFFF#000000##FFFFFF
##AC31E61.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CEB
Deuteranopia (green-blind)
#0074E2
Tritanopia (blue-blind)
#A55E8C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ac31e6;
/* rgb */ color: rgb(172, 49, 230);
/* oklch */ color: oklch(58.4% 0.256 311.7);
Tailwind
colors: {
  custom: {
    50: '#ca78ef',
    500: '#ac31e6',
    950: '#000000',
  },
}
SCSS
$custom: #ac31e6;
$custom-light: #ca78ef;
$custom-dark: #000000;
JSON
{
  "hex": "#ac31e6",
  "rgb": {
    "r": 172,
    "g": 49,
    "b": 230
  },
  "hsl": {
    "h": 280.773,
    "s": 78.355,
    "l": 54.706
  },
  "oklch": {
    "l": 0.58398,
    "c": 0.25649,
    "h": 311.7
  },
  "luminance": 0.1668
}

Semantic roles & 50–950 ramp

primary
#AC31E6
secondary
#ACE093
accent
#F53371
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140A17
muted
#837C85

Preview Lab

Preview with #AC31E6

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

Preview Lab → · Contrast checker → · Palette generator →

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