#AC40C8#AC40C8

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

Color values

HEX#AC40C8
RGBrgb(172, 64, 200)
HSLhsl(288, 55%, 52%)
HSVhsv(288, 68%, 78%)
CMYKcmyk(14%, 68%, 0%, 21.6%)
CIE-LABlab(47.76, 62.81, -50.59)
CIE-LCHlch(47.76, 80.65, 321.15°)
OKLaboklab(57.71% 0.1609 -0.1418)
OKLCHoklch(57.71% 0.214 318.6)
XYZxyz(29.2706, 16.6089, 56.2964)
Luminance0.1661 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40C8 #5CC840
analogous
#6840C8 #AC40C8 #C840A0
triadic
#AC40C8 #C8AC40 #40C8AC
tetradic
#AC40C8 #C86840 #5CC840 #40A0C8
square
#AC40C8 #C86840 #5CC840 #40A0C8
split-complementary
#AC40C8 #A0C840 #40C868
monochromatic
#5E206E #862D9D #AC40C8 #C170D6 #D59FE3

Accessibility & contrast

On white

4.86
#AC40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#AC40C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40C8
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40C8#FFFFFF#000000##FFFFFF
##AC40C81.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ac40c8;
/* rgb */ color: rgb(172, 64, 200);
/* oklch */ color: oklch(57.7% 0.214 318.6);
Tailwind
colors: {
  custom: {
    50: '#c87dd9',
    500: '#ac40c8',
    950: '#000000',
  },
}
SCSS
$custom: #ac40c8;
$custom-light: #c87dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40c8",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 287.647,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.57707,
    "c": 0.21446,
    "h": 318.6
  },
  "luminance": 0.16608
}

Semantic roles & 50–950 ramp

primary
#AC40C8
secondary
#A0D094
accent
#DF4968
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AC40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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