#AC31A7#AC31A7

#AC31A7 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.3% C 0.205 H 329.7°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#AC31A7
RGBrgb(172, 49, 167)
HSLhsl(302, 56%, 43%)
HSVhsv(302, 72%, 67%)
CMYKcmyk(0%, 71.5%, 2.9%, 32.5%)
CIE-LABlab(43.89, 62.60, -37.42)
CIE-LCHlch(43.89, 72.93, 329.13°)
OKLaboklab(54.32% 0.1768 -0.1033)
OKLCHoklch(54.32% 0.205 329.7)
XYZxyz(25.0865, 13.7592, 37.8862)
Luminance0.1376 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC31A7 #31AC36
analogous
#7331AC #AC31A7 #AC3169
triadic
#AC31A7 #A7AC31 #31A7AC
tetradic
#AC31A7 #AC7331 #31AC36 #3169AC
square
#AC31A7 #AC7331 #31AC36 #3169AC
split-complementary
#AC31A7 #69AC31 #31AC73
monochromatic
#4D164B #7C2379 #AC31A7 #CC4EC7 #DA7DD6

Accessibility & contrast

On white

5.60
#AC31A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#AC31A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC31A7
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC31A7#FFFFFF#000000##FFFFFF
##AC31A71.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225DAA
Deuteranopia (green-blind)
#556EA4
Tritanopia (blue-blind)
#B24169
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ac31a7;
/* rgb */ color: rgb(172, 49, 167);
/* oklch */ color: oklch(54.3% 0.205 329.7);
Tailwind
colors: {
  custom: {
    50: '#c875c1',
    500: '#ac31a7',
    950: '#000000',
  },
}
SCSS
$custom: #ac31a7;
$custom-light: #c875c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ac31a7",
  "rgb": {
    "r": 172,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 302.439,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.5432,
    "c": 0.20479,
    "h": 329.7
  },
  "luminance": 0.13757
}

Semantic roles & 50–950 ramp

primary
#AC31A7
secondary
#76C379
accent
#DF4F49
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AC31A7

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

Preview Lab → · Contrast checker → · Palette generator →

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