#AC40D2#AC40D2

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

Color values

HEX#AC40D2
RGBrgb(172, 64, 210)
HSLhsl(284, 62%, 54%)
HSVhsv(284, 70%, 82%)
CMYKcmyk(18.1%, 69.5%, 0%, 17.6%)
CIE-LABlab(48.38, 64.75, -55.36)
CIE-LCHlch(48.38, 85.19, 319.47°)
OKLaboklab(58.34% 0.1603 -0.1557)
OKLCHoklch(58.34% 0.223 315.8)
XYZxyz(30.4777, 17.0917, 62.6539)
Luminance0.1709 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40D2 #66D240
analogous
#6340D2 #AC40D2 #D240AF
triadic
#AC40D2 #D2AC40 #40D2AC
tetradic
#AC40D2 #D26340 #66D240 #40AFD2
square
#AC40D2 #D26340 #66D240 #40AFD2
split-complementary
#AC40D2 #AFD240 #40D263
monochromatic
#621D7B #8A29AC #AC40D2 #C272DE #D7A3E9

Accessibility & contrast

On white

4.75
#AC40D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#AC40D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40D2
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40D2#FFFFFF#000000##FFFFFF
##AC40D21.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#3E76CF
Tritanopia (blue-blind)
#A95D85
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ac40d2;
/* rgb */ color: rgb(172, 64, 210);
/* oklch */ color: oklch(58.3% 0.223 315.8);
Tailwind
colors: {
  custom: {
    50: '#c97ee0',
    500: '#ac40d2',
    950: '#000000',
  },
}
SCSS
$custom: #ac40d2;
$custom-light: #c97ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40d2",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 284.384,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.58341,
    "c": 0.22348,
    "h": 315.8
  },
  "luminance": 0.17091
}

Semantic roles & 50–950 ramp

primary
#AC40D2
secondary
#A8D698
accent
#E5436D
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AC40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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