#AC40AF#AC40AF

#AC40AF is a mid, vivid purple. Relative luminance 0.155; OKLCH L 56.2% C 0.193 H 326.7°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#AC40AF
RGBrgb(172, 64, 175)
HSLhsl(298, 46%, 47%)
HSVhsv(298, 63%, 69%)
CMYKcmyk(1.7%, 63.4%, 0%, 31.4%)
CIE-LABlab(46.36, 58.20, -38.25)
CIE-LCHlch(46.36, 69.65, 326.69°)
OKLaboklab(56.24% 0.1609 -0.1058)
OKLCHoklch(56.24% 0.193 326.7)
XYZxyz(26.5840, 15.5343, 42.1473)
Luminance0.1553 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40AF #43AF40
analogous
#7440AF #AC40AF #AF407B
triadic
#AC40AF #AFAC40 #40AFAC
tetradic
#AC40AF #AF7440 #43AF40 #407BAF
square
#AC40AF #AF7440 #43AF40 #407BAF
split-complementary
#AC40AF #7BAF40 #40AF74
monochromatic
#541F55 #803082 #AC40AF #C465C7 #D592D7

Accessibility & contrast

On white

5.11
#AC40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#AC40AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40AF
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40AF#FFFFFF#000000##FFFFFF
##AC40AF1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F65B2
Deuteranopia (green-blind)
#5873AC
Tritanopia (blue-blind)
#B14F72
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ac40af;
/* rgb */ color: rgb(172, 64, 175);
/* oklch */ color: oklch(56.2% 0.193 326.7);
Tailwind
colors: {
  custom: {
    50: '#c87dc7',
    500: '#ac40af',
    950: '#000000',
  },
}
SCSS
$custom: #ac40af;
$custom-light: #c87dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40af",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 298.378,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.5624,
    "c": 0.19255,
    "h": 326.7
  },
  "luminance": 0.15533
}

Semantic roles & 50–950 ramp

primary
#AC40AF
secondary
#8AC388
accent
#D65255
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AC40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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