#AC40B7#AC40B7

#AC40B7 is a mid, vivid purple. Relative luminance 0.159; OKLCH L 56.7% C 0.199 H 323.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AC40B7
RGBrgb(172, 64, 183)
HSLhsl(294, 48%, 48%)
HSVhsv(294, 65%, 72%)
CMYKcmyk(6%, 65%, 0%, 28.2%)
CIE-LABlab(46.79, 59.64, -42.26)
CIE-LCHlch(46.79, 73.09, 324.68°)
OKLaboklab(56.69% 0.1612 -0.1175)
OKLCHoklch(56.69% 0.199 323.9)
XYZxyz(27.3931, 15.8579, 46.4086)
Luminance0.1586 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40B7 #4BB740
analogous
#7040B7 #AC40B7 #B74086
triadic
#AC40B7 #B7AC40 #40B7AC
tetradic
#AC40B7 #B77040 #4BB740 #4086B7
square
#AC40B7 #B77040 #4BB740 #4086B7
split-complementary
#AC40B7 #86B740 #40B770
monochromatic
#57205C #81308A #AC40B7 #C269CB #D497DB

Accessibility & contrast

On white

5.03
#AC40B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#AC40B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40B7
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40B7#FFFFFF#000000##FFFFFF
##AC40B71.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2667BB
Deuteranopia (green-blind)
#5473B4
Tritanopia (blue-blind)
#AF5276
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ac40b7;
/* rgb */ color: rgb(172, 64, 183);
/* oklch */ color: oklch(56.7% 0.199 323.9);
Tailwind
colors: {
  custom: {
    50: '#c87dcd',
    500: '#ac40b7',
    950: '#000000',
  },
}
SCSS
$custom: #ac40b7;
$custom-light: #c87dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40b7",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 294.454,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.5669,
    "c": 0.19942,
    "h": 323.9
  },
  "luminance": 0.15856
}

Semantic roles & 50–950 ramp

primary
#AC40B7
secondary
#92C68D
accent
#D8505D
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#130A13
muted
#827C82

Preview Lab

Preview with #AC40B7

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

Preview Lab → · Contrast checker → · Palette generator →

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