#AC40E1#AC40E1

#AC40E1 is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.3% C 0.237 H 312.0°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#AC40E1
RGBrgb(172, 64, 225)
HSLhsl(280, 73%, 57%)
HSVhsv(280, 72%, 88%)
CMYKcmyk(23.6%, 71.6%, 0%, 11.8%)
CIE-LABlab(49.34, 67.75, -62.35)
CIE-LCHlch(49.34, 92.08, 317.38°)
OKLaboklab(59.34% 0.1587 -0.1763)
OKLCHoklch(59.34% 0.237 312)
XYZxyz(32.4348, 17.8746, 72.9611)
Luminance0.1787 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40E1 #75E140
analogous
#5B40E1 #AC40E1 #E140C6
triadic
#AC40E1 #E1AC40 #40E1AC
tetradic
#AC40E1 #E15B40 #75E140 #40C6E1
square
#AC40E1 #E15B40 #75E140 #40C6E1
split-complementary
#AC40E1 #C6E140 #40E15B
monochromatic
#681790 #8E1FC5 #AC40E1 #C375E9 #DAAAF2

Accessibility & contrast

On white

4.59
#AC40E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#AC40E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40E1
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40E1#FFFFFF#000000##FFFFFF
##AC40E11.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E6
Deuteranopia (green-blind)
#2B77DE
Tritanopia (blue-blind)
#A6648D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ac40e1;
/* rgb */ color: rgb(172, 64, 225);
/* oklch */ color: oklch(59.3% 0.237 312.0);
Tailwind
colors: {
  custom: {
    50: '#c97eeb',
    500: '#ac40e1',
    950: '#000000',
  },
}
SCSS
$custom: #ac40e1;
$custom-light: #c97eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40e1",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 225
  },
  "hsl": {
    "h": 280.248,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.59338,
    "c": 0.23715,
    "h": 312
  },
  "luminance": 0.17874
}

Semantic roles & 50–950 ramp

primary
#AC40E1
secondary
#B3DF9D
accent
#F03875
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AC40E1

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

Preview Lab → · Contrast checker → · Palette generator →

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