#AC22A6#AC22A6

#AC22A6 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.1% C 0.219 H 330.1°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#AC22A6
RGBrgb(172, 34, 166)
HSLhsl(303, 67%, 40%)
HSVhsv(303, 80%, 67%)
CMYKcmyk(0%, 80.2%, 3.5%, 32.5%)
CIE-LABlab(42.26, 66.94, -39.40)
CIE-LCHlch(42.26, 77.68, 329.52°)
OKLaboklab(53.14% 0.1897 -0.1089)
OKLCHoklch(53.14% 0.219 330.1)
XYZxyz(24.4681, 12.6699, 37.2258)
Luminance0.1267 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC22A6 #22AC28
analogous
#6D22AC #AC22A6 #AC2261
triadic
#AC22A6 #A6AC22 #22A6AC
tetradic
#AC22A6 #AC6D22 #22AC28 #2261AC
square
#AC22A6 #AC6D22 #22AC28 #2261AC
split-complementary
#AC22A6 #61AC22 #22AC6D
monochromatic
#460E43 #791875 #AC22A6 #D734D0 #E167DC

Accessibility & contrast

On white

5.94
#AC22A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AC22A6
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC22A6#FFFFFF#000000##FFFFFF
##AC22A61.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0558A9
Deuteranopia (green-blind)
#4F6AA3
Tritanopia (blue-blind)
#B33765
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ac22a6;
/* rgb */ color: rgb(172, 34, 166);
/* oklch */ color: oklch(53.1% 0.219 330.1);
Tailwind
colors: {
  custom: {
    50: '#c96fc1',
    500: '#ac22a6',
    950: '#000000',
  },
}
SCSS
$custom: #ac22a6;
$custom-light: #c96fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#ac22a6",
  "rgb": {
    "r": 172,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 302.609,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.53141,
    "c": 0.21879,
    "h": 330.1
  },
  "luminance": 0.12668
}

Semantic roles & 50–950 ramp

primary
#AC22A6
secondary
#63C767
accent
#EA453E
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AC22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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