#AC40C2#AC40C2

#AC40C2 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.3% C 0.209 H 320.4°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AC40C2
RGBrgb(172, 64, 194)
HSLhsl(290, 52%, 51%)
HSVhsv(290, 67%, 76%)
CMYKcmyk(11.3%, 67%, 0%, 23.9%)
CIE-LABlab(47.41, 61.67, -47.68)
CIE-LCHlch(47.41, 77.95, 322.29°)
OKLaboklab(57.34% 0.1611 -0.1333)
OKLCHoklch(57.34% 0.209 320.4)
XYZxyz(28.5831, 16.3339, 52.6757)
Luminance0.1633 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40C2 #56C240
analogous
#6B40C2 #AC40C2 #C24097
triadic
#AC40C2 #C2AC40 #40C2AC
tetradic
#AC40C2 #C26B40 #56C240 #4097C2
square
#AC40C2 #C26B40 #56C240 #4097C2
split-complementary
#AC40C2 #97C240 #40C26B
monochromatic
#5B2167 #843095 #AC40C2 #C06ED1 #D49DE0

Accessibility & contrast

On white

4.92
#AC40C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#AC40C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40C2
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40C2#FFFFFF#000000##FFFFFF
##AC40C21.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1269C6
Deuteranopia (green-blind)
#4C74BF
Tritanopia (blue-blind)
#AD577C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ac40c2;
/* rgb */ color: rgb(172, 64, 194);
/* oklch */ color: oklch(57.3% 0.209 320.4);
Tailwind
colors: {
  custom: {
    50: '#c87dd5',
    500: '#ac40c2',
    950: '#000000',
  },
}
SCSS
$custom: #ac40c2;
$custom-light: #c87dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40c2",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 289.846,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.57339,
    "c": 0.2091,
    "h": 320.4
  },
  "luminance": 0.16332
}

Semantic roles & 50–950 ramp

primary
#AC40C2
secondary
#9CCC92
accent
#DB4D65
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AC40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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