#AC40C7#AC40C7

#AC40C7 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.6% C 0.214 H 318.9°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AC40C7
RGBrgb(172, 64, 199)
HSLhsl(288, 55%, 52%)
HSVhsv(288, 68%, 78%)
CMYKcmyk(13.6%, 67.8%, 0%, 22%)
CIE-LABlab(47.70, 62.62, -50.10)
CIE-LCHlch(47.70, 80.20, 321.33°)
OKLaboklab(57.65% 0.161 -0.1403)
OKLCHoklch(57.65% 0.214 318.9)
XYZxyz(29.1541, 16.5623, 55.6829)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40C7 #5BC740
analogous
#6940C7 #AC40C7 #C7409F
triadic
#AC40C7 #C7AC40 #40C7AC
tetradic
#AC40C7 #C76940 #5BC740 #409FC7
square
#AC40C7 #C76940 #5BC740 #409FC7
split-complementary
#AC40C7 #9FC740 #40C769
monochromatic
#5D206D #862E9C #AC40C7 #C16FD5 #D59FE3

Accessibility & contrast

On white

4.87
#AC40C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#AC40C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40C7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40C7#FFFFFF#000000##FFFFFF
##AC40C71.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACB
Deuteranopia (green-blind)
#4875C4
Tritanopia (blue-blind)
#AC597F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ac40c7;
/* rgb */ color: rgb(172, 64, 199);
/* oklch */ color: oklch(57.6% 0.214 318.9);
Tailwind
colors: {
  custom: {
    50: '#c87dd9',
    500: '#ac40c7',
    950: '#000000',
  },
}
SCSS
$custom: #ac40c7;
$custom-light: #c87dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40c7",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 288,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.57645,
    "c": 0.21356,
    "h": 318.9
  },
  "luminance": 0.16561
}

Semantic roles & 50–950 ramp

primary
#AC40C7
secondary
#A0CF94
accent
#DE4A67
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140A15
muted
#827C83

Preview Lab

Preview with #AC40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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