#AC40AC#AC40AC

#AC40AC is a mid, vivid purple. Relative luminance 0.154; OKLCH L 56.1% C 0.190 H 327.7°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#AC40AC
RGBrgb(172, 64, 172)
HSLhsl(300, 46%, 46%)
HSVhsv(300, 63%, 67%)
CMYKcmyk(0%, 62.8%, 0%, 32.5%)
CIE-LABlab(46.20, 57.68, -36.72)
CIE-LCHlch(46.20, 68.38, 327.52°)
OKLaboklab(56.08% 0.1607 -0.1014)
OKLCHoklch(56.08% 0.19 327.7)
XYZxyz(26.2927, 15.4177, 40.6128)
Luminance0.1542 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40AC #40AC40
analogous
#7640AC #AC40AC #AC4076
triadic
#AC40AC #ACAC40 #40ACAC
tetradic
#AC40AC #AC7640 #40AC40 #4076AC
square
#AC40AC #AC7640 #40AC40 #4076AC
split-complementary
#AC40AC #76AC40 #40AC76
monochromatic
#531F53 #7F2F7F #AC40AC #C564C5 #D691D6

Accessibility & contrast

On white

5.14
#AC40AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#AC40AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40AC
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40AC#FFFFFF#000000##FFFFFF
##AC40AC1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3264AF
Deuteranopia (green-blind)
#5A72A9
Tritanopia (blue-blind)
#B14E70
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ac40ac;
/* rgb */ color: rgb(172, 64, 172);
/* oklch */ color: oklch(56.1% 0.190 327.7);
Tailwind
colors: {
  custom: {
    50: '#c87cc5',
    500: '#ac40ac',
    950: '#000000',
  },
}
SCSS
$custom: #ac40ac;
$custom-light: #c87cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40ac",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 300,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56076,
    "c": 0.19001,
    "h": 327.7
  },
  "luminance": 0.15416
}

Semantic roles & 50–950 ramp

primary
#AC40AC
secondary
#87C187
accent
#D55252
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AC40AC

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

Preview Lab → · Contrast checker → · Palette generator →

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