#AC40A2#AC40A2

#AC40A2 is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.5% C 0.182 H 331.5°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#AC40A2
RGBrgb(172, 64, 162)
HSLhsl(306, 46%, 46%)
HSVhsv(306, 63%, 67%)
CMYKcmyk(0%, 62.8%, 5.8%, 32.5%)
CIE-LABlab(45.70, 55.98, -31.59)
CIE-LCHlch(45.70, 64.28, 330.56°)
OKLaboklab(55.55% 0.1598 -0.0866)
OKLCHoklch(55.55% 0.182 331.5)
XYZxyz(25.3682, 15.0479, 35.7438)
Luminance0.1505 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40A2 #40AC4A
analogous
#8040AC #AC40A2 #AC406C
triadic
#AC40A2 #A2AC40 #40A2AC
tetradic
#AC40A2 #AC8040 #40AC4A #406CAC
square
#AC40A2 #AC8040 #40AC4A #406CAC
split-complementary
#AC40A2 #6CAC40 #40AC80
monochromatic
#531F4E #7F2F78 #AC40A2 #C564BC #D691CF

Accessibility & contrast

On white

5.24
#AC40A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#AC40A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC40A2
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40A2#FFFFFF#000000##FFFFFF
##AC40A21.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A62A5
Deuteranopia (green-blind)
#5F729F
Tritanopia (blue-blind)
#B34A6B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ac40a2;
/* rgb */ color: rgb(172, 64, 162);
/* oklch */ color: oklch(55.5% 0.182 331.5);
Tailwind
colors: {
  custom: {
    50: '#c87cbe',
    500: '#ac40a2',
    950: '#000000',
  },
}
SCSS
$custom: #ac40a2;
$custom-light: #c87cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40a2",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 305.556,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.55549,
    "c": 0.18176,
    "h": 331.5
  },
  "luminance": 0.15046
}

Semantic roles & 50–950 ramp

primary
#AC40A2
secondary
#87C18C
accent
#D55F52
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #AC40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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