#AC40D1#AC40D1

#AC40D1 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.3% C 0.223 H 316.1°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#AC40D1
RGBrgb(172, 64, 209)
HSLhsl(285, 61%, 54%)
HSVhsv(285, 69%, 82%)
CMYKcmyk(17.7%, 69.4%, 0%, 18%)
CIE-LABlab(48.31, 64.55, -54.89)
CIE-LCHlch(48.31, 84.73, 319.63°)
OKLaboklab(58.28% 0.1604 -0.1543)
OKLCHoklch(58.28% 0.223 316.1)
XYZxyz(30.3535, 17.0421, 61.9998)
Luminance0.1704 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40D1 #65D140
analogous
#6340D1 #AC40D1 #D140AD
triadic
#AC40D1 #D1AC40 #40D1AC
tetradic
#AC40D1 #D16340 #65D140 #40ADD1
square
#AC40D1 #D16340 #65D140 #40ADD1
split-complementary
#AC40D1 #ADD140 #40D163
monochromatic
#621D79 #8A29AB #AC40D1 #C171DD #D7A3E9

Accessibility & contrast

On white

4.76
#AC40D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#AC40D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40D1
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40D1#FFFFFF#000000##FFFFFF
##AC40D11.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD5
Deuteranopia (green-blind)
#3F76CE
Tritanopia (blue-blind)
#AA5D84
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ac40d1;
/* rgb */ color: rgb(172, 64, 209);
/* oklch */ color: oklch(58.3% 0.223 316.1);
Tailwind
colors: {
  custom: {
    50: '#c97ee0',
    500: '#ac40d1',
    950: '#000000',
  },
}
SCSS
$custom: #ac40d1;
$custom-light: #c97ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40d1",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 284.69,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.58276,
    "c": 0.22257,
    "h": 316.1
  },
  "luminance": 0.17041
}

Semantic roles & 50–950 ramp

primary
#AC40D1
secondary
#A7D597
accent
#E4446D
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AC40D1

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

Preview Lab → · Contrast checker → · Palette generator →

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