#AC40DF#AC40DF

#AC40DF is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.2% C 0.235 H 312.5°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#AC40DF
RGBrgb(172, 64, 223)
HSLhsl(281, 71%, 56%)
HSVhsv(281, 71%, 87%)
CMYKcmyk(22.9%, 71.3%, 0%, 12.5%)
CIE-LABlab(49.21, 67.34, -61.43)
CIE-LCHlch(49.21, 91.15, 317.63°)
OKLaboklab(59.2% 0.1589 -0.1735)
OKLCHoklch(59.2% 0.235 312.5)
XYZxyz(32.1635, 17.7661, 71.5326)
Luminance0.1777 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40DF #73DF40
analogous
#5D40DF #AC40DF #DF40C2
triadic
#AC40DF #DFAC40 #40DFAC
tetradic
#AC40DF #DF5D40 #73DF40 #40C2DF
square
#AC40DF #DF5D40 #73DF40 #40C2DF
split-complementary
#AC40DF #C2DF40 #40DF5D
monochromatic
#67188D #8E20C1 #AC40DF #C374E8 #DAA9F1

Accessibility & contrast

On white

4.61
#AC40DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#AC40DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40DF
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40DF#FFFFFF#000000##FFFFFF
##AC40DF1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E4
Deuteranopia (green-blind)
#2E77DC
Tritanopia (blue-blind)
#A6638C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ac40df;
/* rgb */ color: rgb(172, 64, 223);
/* oklch */ color: oklch(59.2% 0.235 312.5);
Tailwind
colors: {
  custom: {
    50: '#c97eea',
    500: '#ac40df',
    950: '#000000',
  },
}
SCSS
$custom: #ac40df;
$custom-light: #c97eea;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40df",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 280.755,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.59202,
    "c": 0.23532,
    "h": 312.5
  },
  "luminance": 0.17765
}

Semantic roles & 50–950 ramp

primary
#AC40DF
secondary
#B2DE9D
accent
#EE3A74
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AC40DF

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

Preview Lab → · Contrast checker → · Palette generator →

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