#AC40D5#AC40D5

#AC40D5 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.5% C 0.226 H 315.0°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AC40D5
RGBrgb(172, 64, 213)
HSLhsl(283, 64%, 54%)
HSVhsv(283, 70%, 84%)
CMYKcmyk(19.2%, 70%, 0%, 16.5%)
CIE-LABlab(48.56, 65.34, -56.77)
CIE-LCHlch(48.56, 86.56, 319.01°)
OKLaboklab(58.54% 0.16 -0.1599)
OKLCHoklch(58.54% 0.226 315)
XYZxyz(30.8549, 17.2426, 64.6407)
Luminance0.1724 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40D5 #69D540
analogous
#6240D5 #AC40D5 #D540B3
triadic
#AC40D5 #D5AC40 #40D5AC
tetradic
#AC40D5 #D56240 #69D540 #40B3D5
square
#AC40D5 #D56240 #69D540 #40B3D5
split-complementary
#AC40D5 #B3D540 #40D562
monochromatic
#641C7F #8B27B1 #AC40D5 #C272E0 #D8A4EB

Accessibility & contrast

On white

4.72
#AC40D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#AC40D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40D5
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40D5#FFFFFF#000000##FFFFFF
##AC40D51.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD9
Deuteranopia (green-blind)
#3B76D2
Tritanopia (blue-blind)
#A95F86
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ac40d5;
/* rgb */ color: rgb(172, 64, 213);
/* oklch */ color: oklch(58.5% 0.226 315.0);
Tailwind
colors: {
  custom: {
    50: '#c97ee3',
    500: '#ac40d5',
    950: '#000000',
  },
}
SCSS
$custom: #ac40d5;
$custom-light: #c97ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40d5",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 283.49,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.58536,
    "c": 0.2262,
    "h": 315
  },
  "luminance": 0.17242
}

Semantic roles & 50–950 ramp

primary
#AC40D5
secondary
#AAD899
accent
#E7416F
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B15
muted
#827C84

Preview Lab

Preview with #AC40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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