#AC40DC#AC40DC

#AC40DC is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 59.0% C 0.233 H 313.2°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#AC40DC
RGBrgb(172, 64, 220)
HSLhsl(282, 69%, 56%)
HSVhsv(282, 71%, 86%)
CMYKcmyk(21.8%, 70.9%, 0%, 13.7%)
CIE-LABlab(49.01, 66.74, -60.04)
CIE-LCHlch(49.01, 89.77, 318.02°)
OKLaboklab(59% 0.1593 -0.1695)
OKLCHoklch(59% 0.233 313.2)
XYZxyz(31.7627, 17.6057, 69.4213)
Luminance0.1761 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40DC #70DC40
analogous
#5E40DC #AC40DC #DC40BE
triadic
#AC40DC #DCAC40 #40DCAC
tetradic
#AC40DC #DC5E40 #70DC40 #40BEDC
square
#AC40DC #DC5E40 #70DC40 #40BEDC
split-complementary
#AC40DC #BEDC40 #40DC5E
monochromatic
#661989 #8D23BC #AC40DC #C274E5 #D9A7EF

Accessibility & contrast

On white

4.64
#AC40DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#AC40DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40DC
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40DC#FFFFFF#000000##FFFFFF
##AC40DC1.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#3377D9
Tritanopia (blue-blind)
#A7628A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ac40dc;
/* rgb */ color: rgb(172, 64, 220);
/* oklch */ color: oklch(59.0% 0.233 313.2);
Tailwind
colors: {
  custom: {
    50: '#c97ee8',
    500: '#ac40dc',
    950: '#000000',
  },
}
SCSS
$custom: #ac40dc;
$custom-light: #c97ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40dc",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 220
  },
  "hsl": {
    "h": 281.538,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.59,
    "c": 0.23258,
    "h": 313.2
  },
  "luminance": 0.17605
}

Semantic roles & 50–950 ramp

primary
#AC40DC
secondary
#AFDC9B
accent
#EC3C72
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AC40DC

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

Preview Lab → · Contrast checker → · Palette generator →

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