#AC22A7#AC22A7

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

Color values

HEX#AC22A7
RGBrgb(172, 34, 167)
HSLhsl(302, 67%, 40%)
HSVhsv(302, 80%, 67%)
CMYKcmyk(0%, 80.2%, 2.9%, 32.5%)
CIE-LABlab(42.32, 67.10, -39.91)
CIE-LCHlch(42.32, 78.07, 329.26°)
OKLaboklab(53.2% 0.1897 -0.1104)
OKLCHoklch(53.2% 0.22 329.8)
XYZxyz(24.5602, 12.7067, 37.7108)
Luminance0.1270 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC22A7 #22AC27
analogous
#6C22AC #AC22A7 #AC2262
triadic
#AC22A7 #A7AC22 #22A7AC
tetradic
#AC22A7 #AC6C22 #22AC27 #2262AC
square
#AC22A7 #AC6C22 #22AC27 #2262AC
split-complementary
#AC22A7 #62AC22 #22AC6C
monochromatic
#460E44 #791875 #AC22A7 #D734D1 #E167DD

Accessibility & contrast

On white

5.93
#AC22A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AC22A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC22A7
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC22A7#FFFFFF#000000##FFFFFF
##AC22A71.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0258AA
Deuteranopia (green-blind)
#4F6AA4
Tritanopia (blue-blind)
#B23865
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ac22a7;
/* rgb */ color: rgb(172, 34, 167);
/* oklch */ color: oklch(53.2% 0.220 329.8);
Tailwind
colors: {
  custom: {
    50: '#c96fc2',
    500: '#ac22a7',
    950: '#000000',
  },
}
SCSS
$custom: #ac22a7;
$custom-light: #c96fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#ac22a7",
  "rgb": {
    "r": 172,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 302.174,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.53199,
    "c": 0.21951,
    "h": 329.8
  },
  "luminance": 0.12705
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AC22A7

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

Preview Lab → · Contrast checker → · Palette generator →

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