#AC20A2#AC20A2

#AC20A2 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.8% C 0.218 H 331.5°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#AC20A2
RGBrgb(172, 32, 162)
HSLhsl(304, 69%, 40%)
HSVhsv(304, 81%, 67%)
CMYKcmyk(0%, 81.4%, 5.8%, 32.5%)
CIE-LABlab(41.87, 66.83, -37.63)
CIE-LCHlch(41.87, 76.69, 330.62°)
OKLaboklab(52.79% 0.1912 -0.1038)
OKLCHoklch(52.79% 0.218 331.5)
XYZxyz(24.0514, 12.4143, 35.3049)
Luminance0.1241 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC20A2 #20AC2A
analogous
#7020AC #AC20A2 #AC205C
triadic
#AC20A2 #A2AC20 #20A2AC
tetradic
#AC20A2 #AC7020 #20AC2A #205CAC
square
#AC20A2 #AC7020 #20AC2A #205CAC
split-complementary
#AC20A2 #5CAC20 #20AC70
monochromatic
#450D41 #781671 #AC20A2 #D931CD #E264D9

Accessibility & contrast

On white

6.03
#AC20A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#AC20A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC20A2
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC20A2#FFFFFF#000000##FFFFFF
##AC20A21.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D57A5
Deuteranopia (green-blind)
#51699F
Tritanopia (blue-blind)
#B33462
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ac20a2;
/* rgb */ color: rgb(172, 32, 162);
/* oklch */ color: oklch(52.8% 0.218 331.5);
Tailwind
colors: {
  custom: {
    50: '#c96ebe',
    500: '#ac20a2',
    950: '#000000',
  },
}
SCSS
$custom: #ac20a2;
$custom-light: #c96ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#ac20a2",
  "rgb": {
    "r": 172,
    "g": 32,
    "b": 162
  },
  "hsl": {
    "h": 304.286,
    "s": 68.627,
    "l": 40
  },
  "oklch": {
    "l": 0.52788,
    "c": 0.21757,
    "h": 331.5
  },
  "luminance": 0.12412
}

Semantic roles & 50–950 ramp

primary
#AC20A2
secondary
#60C768
accent
#EB493C
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AC20A2

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

Preview Lab → · Contrast checker → · Palette generator →

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