#AC22A1#AC22A1

#AC22A1 is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.9% C 0.215 H 331.9°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#AC22A1
RGBrgb(172, 34, 161)
HSLhsl(305, 67%, 40%)
HSVhsv(305, 80%, 67%)
CMYKcmyk(0%, 80.2%, 6.4%, 32.5%)
CIE-LABlab(41.98, 66.18, -36.84)
CIE-LCHlch(41.98, 75.74, 330.89°)
OKLaboklab(52.85% 0.1898 -0.1015)
OKLCHoklch(52.85% 0.215 331.9)
XYZxyz(24.0184, 12.4900, 34.8571)
Luminance0.1249 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC22A1 #22AC2D
analogous
#7222AC #AC22A1 #AC225C
triadic
#AC22A1 #A1AC22 #22A1AC
tetradic
#AC22A1 #AC7222 #22AC2D #225CAC
square
#AC22A1 #AC7222 #22AC2D #225CAC
split-complementary
#AC22A1 #5CAC22 #22AC72
monochromatic
#460E41 #791871 #AC22A1 #D734CA #E167D7

Accessibility & contrast

On white

6.00
#AC22A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#AC22A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC22A1
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC22A1#FFFFFF#000000##FFFFFF
##AC22A11.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1357A4
Deuteranopia (green-blind)
#526A9E
Tritanopia (blue-blind)
#B33562
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ac22a1;
/* rgb */ color: rgb(172, 34, 161);
/* oklch */ color: oklch(52.9% 0.215 331.9);
Tailwind
colors: {
  custom: {
    50: '#c96fbd',
    500: '#ac22a1',
    950: '#000000',
  },
}
SCSS
$custom: #ac22a1;
$custom-light: #c96fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#ac22a1",
  "rgb": {
    "r": 172,
    "g": 34,
    "b": 161
  },
  "hsl": {
    "h": 304.783,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.52854,
    "c": 0.21521,
    "h": 331.9
  },
  "luminance": 0.12488
}

Semantic roles & 50–950 ramp

primary
#AC22A1
secondary
#63C76B
accent
#EA4C3E
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AC22A1

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

Preview Lab → · Contrast checker → · Palette generator →

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