#AC22A2#AC22A2

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

Color values

HEX#AC22A2
RGBrgb(172, 34, 162)
HSLhsl(304, 67%, 40%)
HSVhsv(304, 80%, 67%)
CMYKcmyk(0%, 80.2%, 5.8%, 32.5%)
CIE-LABlab(42.04, 66.33, -37.36)
CIE-LCHlch(42.04, 76.13, 330.61°)
OKLaboklab(52.91% 0.1898 -0.103)
OKLCHoklch(52.91% 0.216 331.5)
XYZxyz(24.1069, 12.5254, 35.3234)
Luminance0.1252 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC22A2 #22AC2C
analogous
#7122AC #AC22A2 #AC225D
triadic
#AC22A2 #A2AC22 #22A2AC
tetradic
#AC22A2 #AC7122 #22AC2C #225DAC
square
#AC22A2 #AC7122 #22AC2C #225DAC
split-complementary
#AC22A2 #5DAC22 #22AC71
monochromatic
#460E42 #791872 #AC22A2 #D734CB #E167D8

Accessibility & contrast

On white

5.99
#AC22A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AC22A2
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC22A2#FFFFFF#000000##FFFFFF
##AC22A21.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1157A5
Deuteranopia (green-blind)
#516A9F
Tritanopia (blue-blind)
#B33562
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ac22a2;
/* rgb */ color: rgb(172, 34, 162);
/* oklch */ color: oklch(52.9% 0.216 331.5);
Tailwind
colors: {
  custom: {
    50: '#c96fbe',
    500: '#ac22a2',
    950: '#000000',
  },
}
SCSS
$custom: #ac22a2;
$custom-light: #c96fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#ac22a2",
  "rgb": {
    "r": 172,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 304.348,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.52911,
    "c": 0.21593,
    "h": 331.5
  },
  "luminance": 0.12523
}

Semantic roles & 50–950 ramp

primary
#AC22A2
secondary
#63C76A
accent
#EA4A3E
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AC22A2

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

Preview Lab → · Contrast checker → · Palette generator →

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