#AC40D3#AC40D3

#AC40D3 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.4% C 0.224 H 315.6°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#AC40D3
RGBrgb(172, 64, 211)
HSLhsl(284, 63%, 54%)
HSVhsv(284, 70%, 83%)
CMYKcmyk(18.5%, 69.7%, 0%, 17.3%)
CIE-LABlab(48.44, 64.95, -55.83)
CIE-LCHlch(48.44, 85.65, 319.32°)
OKLaboklab(58.41% 0.1602 -0.1571)
OKLCHoklch(58.41% 0.224 315.6)
XYZxyz(30.6027, 17.1417, 63.3120)
Luminance0.1714 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40D3 #67D340
analogous
#6340D3 #AC40D3 #D340B0
triadic
#AC40D3 #D3AC40 #40D3AC
tetradic
#AC40D3 #D36340 #67D340 #40B0D3
square
#AC40D3 #D36340 #67D340 #40B0D3
split-complementary
#AC40D3 #B0D340 #40D363
monochromatic
#631D7C #8A28AE #AC40D3 #C272DE #D7A3EA

Accessibility & contrast

On white

4.74
#AC40D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#AC40D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40D3
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40D3#FFFFFF#000000##FFFFFF
##AC40D31.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD7
Deuteranopia (green-blind)
#3D76D0
Tritanopia (blue-blind)
#A95E85
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ac40d3;
/* rgb */ color: rgb(172, 64, 211);
/* oklch */ color: oklch(58.4% 0.224 315.6);
Tailwind
colors: {
  custom: {
    50: '#c97ee1',
    500: '#ac40d3',
    950: '#000000',
  },
}
SCSS
$custom: #ac40d3;
$custom-light: #c97ee1;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40d3",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 284.082,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.58406,
    "c": 0.22439,
    "h": 315.6
  },
  "luminance": 0.17141
}

Semantic roles & 50–950 ramp

primary
#AC40D3
secondary
#A9D798
accent
#E6426E
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AC40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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