#AC40B8#AC40B8

#AC40B8 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.7% C 0.200 H 323.6°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#AC40B8
RGBrgb(172, 64, 184)
HSLhsl(294, 48%, 49%)
HSVhsv(294, 65%, 72%)
CMYKcmyk(6.5%, 65.2%, 0%, 27.8%)
CIE-LABlab(46.84, 59.82, -42.76)
CIE-LCHlch(46.84, 73.53, 324.44°)
OKLaboklab(56.75% 0.1612 -0.1189)
OKLCHoklch(56.75% 0.2 323.6)
XYZxyz(27.4976, 15.8997, 46.9587)
Luminance0.1590 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40B8 #4CB840
analogous
#7040B8 #AC40B8 #B84088
triadic
#AC40B8 #B8AC40 #40B8AC
tetradic
#AC40B8 #B87040 #4CB840 #4088B8
square
#AC40B8 #B87040 #4CB840 #4088B8
split-complementary
#AC40B8 #88B840 #40B870
monochromatic
#57205D #82308B #AC40B8 #C16ACB #D497DB

Accessibility & contrast

On white

5.02
#AC40B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#AC40B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40B8
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40B8#FFFFFF#000000##FFFFFF
##AC40B81.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2567BC
Deuteranopia (green-blind)
#5373B5
Tritanopia (blue-blind)
#AF5377
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ac40b8;
/* rgb */ color: rgb(172, 64, 184);
/* oklch */ color: oklch(56.7% 0.200 323.6);
Tailwind
colors: {
  custom: {
    50: '#c87dce',
    500: '#ac40b8',
    950: '#000000',
  },
}
SCSS
$custom: #ac40b8;
$custom-light: #c87dce;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40b8",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 294,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.56748,
    "c": 0.2003,
    "h": 323.6
  },
  "luminance": 0.15898
}

Semantic roles & 50–950 ramp

primary
#AC40B8
secondary
#93C78D
accent
#D8505D
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#130A13
muted
#827C82

Preview Lab

Preview with #AC40B8

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

Preview Lab → · Contrast checker → · Palette generator →

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