#AC40D9#AC40D9

#AC40D9 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.8% C 0.230 H 314.0°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#AC40D9
RGBrgb(172, 64, 217)
HSLhsl(282, 67%, 55%)
HSVhsv(282, 71%, 85%)
CMYKcmyk(20.7%, 70.5%, 0%, 14.9%)
CIE-LABlab(48.82, 66.14, -58.65)
CIE-LCHlch(48.82, 88.40, 318.44°)
OKLaboklab(58.8% 0.1596 -0.1654)
OKLCHoklch(58.8% 0.23 314)
XYZxyz(31.3689, 17.4482, 67.3476)
Luminance0.1745 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40D9 #6DD940
analogous
#6040D9 #AC40D9 #D940B9
triadic
#AC40D9 #D9AC40 #40D9AC
tetradic
#AC40D9 #D96040 #6DD940 #40B9D9
square
#AC40D9 #D96040 #6DD940 #40B9D9
split-complementary
#AC40D9 #B9D940 #40D960
monochromatic
#651A84 #8C24B7 #AC40D9 #C273E3 #D8A6ED

Accessibility & contrast

On white

4.68
#AC40D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#AC40D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40D9
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40D9#FFFFFF#000000##FFFFFF
##AC40D91.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDD
Deuteranopia (green-blind)
#3677D6
Tritanopia (blue-blind)
#A86089
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ac40d9;
/* rgb */ color: rgb(172, 64, 217);
/* oklch */ color: oklch(58.8% 0.230 314.0);
Tailwind
colors: {
  custom: {
    50: '#c97ee5',
    500: '#ac40d9',
    950: '#000000',
  },
}
SCSS
$custom: #ac40d9;
$custom-light: #c97ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40d9",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 282.353,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.58799,
    "c": 0.22985,
    "h": 314
  },
  "luminance": 0.17447
}

Semantic roles & 50–950 ramp

primary
#AC40D9
secondary
#ADDA9A
accent
#EA3E71
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AC40D9

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

Preview Lab → · Contrast checker → · Palette generator →

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