#AC40C3#AC40C3

#AC40C3 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.4% C 0.210 H 320.1°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#AC40C3
RGBrgb(172, 64, 195)
HSLhsl(289, 52%, 51%)
HSVhsv(289, 67%, 76%)
CMYKcmyk(11.8%, 67.2%, 0%, 23.5%)
CIE-LABlab(47.47, 61.86, -48.16)
CIE-LCHlch(47.47, 78.40, 322.09°)
OKLaboklab(57.4% 0.1611 -0.1347)
OKLCHoklch(57.4% 0.21 320.1)
XYZxyz(28.6958, 16.3790, 53.2691)
Luminance0.1638 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40C3 #57C340
analogous
#6A40C3 #AC40C3 #C34098
triadic
#AC40C3 #C3AC40 #40C3AC
tetradic
#AC40C3 #C36A40 #57C340 #4098C3
square
#AC40C3 #C36A40 #57C340 #4098C3
split-complementary
#AC40C3 #98C340 #40C36A
monochromatic
#5B2168 #842F97 #AC40C3 #C06FD2 #D49DE0

Accessibility & contrast

On white

4.91
#AC40C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#AC40C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40C3
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40C3#FFFFFF#000000##FFFFFF
##AC40C31.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1069C7
Deuteranopia (green-blind)
#4B74C0
Tritanopia (blue-blind)
#AD577C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ac40c3;
/* rgb */ color: rgb(172, 64, 195);
/* oklch */ color: oklch(57.4% 0.210 320.1);
Tailwind
colors: {
  custom: {
    50: '#c87dd6',
    500: '#ac40c3',
    950: '#000000',
  },
}
SCSS
$custom: #ac40c3;
$custom-light: #c87dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40c3",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 289.466,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.574,
    "c": 0.20999,
    "h": 320.1
  },
  "luminance": 0.16378
}

Semantic roles & 50–950 ramp

primary
#AC40C3
secondary
#9DCC92
accent
#DC4C65
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AC40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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