#AC40CE#AC40CE

#AC40CE is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.1% C 0.220 H 316.9°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#AC40CE
RGBrgb(172, 64, 206)
HSLhsl(286, 59%, 53%)
HSVhsv(286, 69%, 81%)
CMYKcmyk(16.5%, 68.9%, 0%, 19.2%)
CIE-LABlab(48.13, 63.97, -53.46)
CIE-LCHlch(48.13, 83.37, 320.11°)
OKLaboklab(58.08% 0.1606 -0.1502)
OKLCHoklch(58.08% 0.22 316.9)
XYZxyz(29.9856, 16.8949, 60.0621)
Luminance0.1689 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40CE #62CE40
analogous
#6540CE #AC40CE #CE40A9
triadic
#AC40CE #CEAC40 #40CEAC
tetradic
#AC40CE #CE6540 #62CE40 #40A9CE
square
#AC40CE #CE6540 #62CE40 #40A9CE
split-complementary
#AC40CE #A9CE40 #40CE65
monochromatic
#611E75 #892BA6 #AC40CE #C171DA #D6A1E7

Accessibility & contrast

On white

4.80
#AC40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#AC40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40CE
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40CE#FFFFFF#000000##FFFFFF
##AC40CE1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD2
Deuteranopia (green-blind)
#4275CB
Tritanopia (blue-blind)
#AA5C82
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ac40ce;
/* rgb */ color: rgb(172, 64, 206);
/* oklch */ color: oklch(58.1% 0.220 316.9);
Tailwind
colors: {
  custom: {
    50: '#c97ede',
    500: '#ac40ce',
    950: '#000000',
  },
}
SCSS
$custom: #ac40ce;
$custom-light: #c97ede;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40ce",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 285.634,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.58084,
    "c": 0.21986,
    "h": 316.9
  },
  "luminance": 0.16894
}

Semantic roles & 50–950 ramp

primary
#AC40CE
secondary
#A5D496
accent
#E2456B
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AC40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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