#AC40D8#AC40D8

#AC40D8 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.7% C 0.229 H 314.2°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#AC40D8
RGBrgb(172, 64, 216)
HSLhsl(283, 66%, 55%)
HSVhsv(283, 70%, 85%)
CMYKcmyk(20.4%, 70.4%, 0%, 15.3%)
CIE-LABlab(48.76, 65.94, -58.18)
CIE-LCHlch(48.76, 87.94, 318.58°)
OKLaboklab(58.73% 0.1597 -0.164)
OKLCHoklch(58.73% 0.229 314.2)
XYZxyz(31.2392, 17.3964, 66.6647)
Luminance0.1739 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40D8 #6CD840
analogous
#6040D8 #AC40D8 #D840B8
triadic
#AC40D8 #D8AC40 #40D8AC
tetradic
#AC40D8 #D86040 #6CD840 #40B8D8
square
#AC40D8 #D86040 #6CD840 #40B8D8
split-complementary
#AC40D8 #B8D840 #40D860
monochromatic
#651B83 #8C25B6 #AC40D8 #C273E2 #D8A6ED

Accessibility & contrast

On white

4.69
#AC40D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#AC40D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40D8
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40D8#FFFFFF#000000##FFFFFF
##AC40D81.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDC
Deuteranopia (green-blind)
#3876D5
Tritanopia (blue-blind)
#A86088
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ac40d8;
/* rgb */ color: rgb(172, 64, 216);
/* oklch */ color: oklch(58.7% 0.229 314.2);
Tailwind
colors: {
  custom: {
    50: '#c97ee5',
    500: '#ac40d8',
    950: '#000000',
  },
}
SCSS
$custom: #ac40d8;
$custom-light: #c97ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40d8",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 282.632,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.58733,
    "c": 0.22893,
    "h": 314.2
  },
  "luminance": 0.17395
}

Semantic roles & 50–950 ramp

primary
#AC40D8
secondary
#ACDA9A
accent
#E93F70
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AC40D8

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

Preview Lab → · Contrast checker → · Palette generator →

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