#AC22A5#AC22A5

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

Color values

HEX#AC22A5
RGBrgb(172, 34, 165)
HSLhsl(303, 67%, 40%)
HSVhsv(303, 80%, 67%)
CMYKcmyk(0%, 80.2%, 4.1%, 32.5%)
CIE-LABlab(42.21, 66.79, -38.89)
CIE-LCHlch(42.21, 77.29, 329.79°)
OKLaboklab(53.08% 0.1898 -0.1075)
OKLCHoklch(53.08% 0.218 330.5)
XYZxyz(24.3768, 12.6333, 36.7446)
Luminance0.1263 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC22A5 #22AC29
analogous
#6E22AC #AC22A5 #AC2260
triadic
#AC22A5 #A5AC22 #22A5AC
tetradic
#AC22A5 #AC6E22 #22AC29 #2260AC
square
#AC22A5 #AC6E22 #22AC29 #2260AC
split-complementary
#AC22A5 #60AC22 #22AC6E
monochromatic
#460E43 #791874 #AC22A5 #D734CF #E167DB

Accessibility & contrast

On white

5.96
#AC22A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#AC22A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC22A5
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC22A5#FFFFFF#000000##FFFFFF
##AC22A51.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0858A8
Deuteranopia (green-blind)
#506AA2
Tritanopia (blue-blind)
#B33764
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ac22a5;
/* rgb */ color: rgb(172, 34, 165);
/* oklch */ color: oklch(53.1% 0.218 330.5);
Tailwind
colors: {
  custom: {
    50: '#c96fc0',
    500: '#ac22a5',
    950: '#000000',
  },
}
SCSS
$custom: #ac22a5;
$custom-light: #c96fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#ac22a5",
  "rgb": {
    "r": 172,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 303.043,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.53083,
    "c": 0.21807,
    "h": 330.5
  },
  "luminance": 0.12631
}

Semantic roles & 50–950 ramp

primary
#AC22A5
secondary
#63C768
accent
#EA473E
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AC22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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