#AC40CD#AC40CD

#AC40CD is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.0% C 0.219 H 317.2°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AC40CD
RGBrgb(172, 64, 205)
HSLhsl(286, 59%, 53%)
HSVhsv(286, 69%, 80%)
CMYKcmyk(16.1%, 68.8%, 0%, 19.6%)
CIE-LABlab(48.07, 63.77, -52.98)
CIE-LCHlch(48.07, 82.91, 320.28°)
OKLaboklab(58.02% 0.1606 -0.1488)
OKLCHoklch(58.02% 0.219 317.2)
XYZxyz(29.8645, 16.8465, 59.4243)
Luminance0.1684 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40CD #61CD40
analogous
#6540CD #AC40CD #CD40A8
triadic
#AC40CD #CDAC40 #40CDAC
tetradic
#AC40CD #CD6540 #61CD40 #40A8CD
square
#AC40CD #CD6540 #61CD40 #40A8CD
split-complementary
#AC40CD #A8CD40 #40CD65
monochromatic
#601E74 #882BA5 #AC40CD #C171DA #D6A1E6

Accessibility & contrast

On white

4.81
#AC40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#AC40CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40CD
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40CD#FFFFFF#000000##FFFFFF
##AC40CD1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#4375CA
Tritanopia (blue-blind)
#AB5B82
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ac40cd;
/* rgb */ color: rgb(172, 64, 205);
/* oklch */ color: oklch(58.0% 0.219 317.2);
Tailwind
colors: {
  custom: {
    50: '#c97edd',
    500: '#ac40cd',
    950: '#000000',
  },
}
SCSS
$custom: #ac40cd;
$custom-light: #c97edd;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40cd",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 285.957,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.58021,
    "c": 0.21896,
    "h": 317.2
  },
  "luminance": 0.16845
}

Semantic roles & 50–950 ramp

primary
#AC40CD
secondary
#A4D396
accent
#E2466B
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AC40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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