#AC22A8#AC22A8

#AC22A8 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.3% C 0.220 H 329.5°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#AC22A8
RGBrgb(172, 34, 168)
HSLhsl(302, 67%, 40%)
HSVhsv(302, 80%, 67%)
CMYKcmyk(0%, 80.2%, 2.3%, 32.5%)
CIE-LABlab(42.37, 67.26, -40.41)
CIE-LCHlch(42.37, 78.46, 329.00°)
OKLaboklab(53.26% 0.1897 -0.1119)
OKLCHoklch(53.26% 0.22 329.5)
XYZxyz(24.6530, 12.7438, 38.1996)
Luminance0.1274 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC22A8 #22AC26
analogous
#6B22AC #AC22A8 #AC2263
triadic
#AC22A8 #A8AC22 #22A8AC
tetradic
#AC22A8 #AC6B22 #22AC26 #2263AC
square
#AC22A8 #AC6B22 #22AC26 #2263AC
split-complementary
#AC22A8 #63AC22 #22AC6B
monochromatic
#460E44 #791876 #AC22A8 #D734D2 #E167DE

Accessibility & contrast

On white

5.92
#AC22A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#AC22A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC22A8
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC22A8#FFFFFF#000000##FFFFFF
##AC22A81.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AB
Deuteranopia (green-blind)
#4E6AA5
Tritanopia (blue-blind)
#B23966
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ac22a8;
/* rgb */ color: rgb(172, 34, 168);
/* oklch */ color: oklch(53.3% 0.220 329.5);
Tailwind
colors: {
  custom: {
    50: '#c96fc2',
    500: '#ac22a8',
    950: '#000000',
  },
}
SCSS
$custom: #ac22a8;
$custom-light: #c96fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#ac22a8",
  "rgb": {
    "r": 172,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 301.739,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.53258,
    "c": 0.22023,
    "h": 329.5
  },
  "luminance": 0.12742
}

Semantic roles & 50–950 ramp

primary
#AC22A8
secondary
#63C766
accent
#EA433E
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140812
muted
#827B81

Preview Lab

Preview with #AC22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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