#AC20A7#AC20A7

#AC20A7 is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 53.1% C 0.221 H 329.8°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#AC20A7
RGBrgb(172, 32, 167)
HSLhsl(302, 69%, 40%)
HSVhsv(302, 81%, 67%)
CMYKcmyk(0%, 81.4%, 2.9%, 32.5%)
CIE-LABlab(42.15, 67.59, -40.18)
CIE-LCHlch(42.15, 78.63, 329.27°)
OKLaboklab(53.08% 0.1911 -0.1112)
OKLCHoklch(53.08% 0.221 329.8)
XYZxyz(24.5047, 12.5957, 37.6923)
Luminance0.1259 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC20A7 #20AC25
analogous
#6B20AC #AC20A7 #AC2061
triadic
#AC20A7 #A7AC20 #20A7AC
tetradic
#AC20A7 #AC6B20 #20AC25 #2061AC
square
#AC20A7 #AC6B20 #20AC25 #2061AC
split-complementary
#AC20A7 #61AC20 #20AC6B
monochromatic
#450D43 #781675 #AC20A7 #D931D3 #E264DE

Accessibility & contrast

On white

5.97
#AC20A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AC20A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC20A7
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC20A7#FFFFFF#000000##FFFFFF
##AC20A71.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AA
Deuteranopia (green-blind)
#4E6AA4
Tritanopia (blue-blind)
#B23765
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ac20a7;
/* rgb */ color: rgb(172, 32, 167);
/* oklch */ color: oklch(53.1% 0.221 329.8);
Tailwind
colors: {
  custom: {
    50: '#c96fc2',
    500: '#ac20a7',
    950: '#000000',
  },
}
SCSS
$custom: #ac20a7;
$custom-light: #c96fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#ac20a7",
  "rgb": {
    "r": 172,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 302.143,
    "s": 68.627,
    "l": 40
  },
  "oklch": {
    "l": 0.53078,
    "c": 0.22111,
    "h": 329.8
  },
  "luminance": 0.12594
}

Semantic roles & 50–950 ramp

primary
#AC20A7
secondary
#60C764
accent
#EB433C
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AC20A7

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

Preview Lab → · Contrast checker → · Palette generator →

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