#AC21AA#AC21AA

#AC21AA is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.3% C 0.222 H 328.8°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#AC21AA
RGBrgb(172, 33, 170)
HSLhsl(301, 68%, 40%)
HSVhsv(301, 81%, 67%)
CMYKcmyk(0%, 80.8%, 1.2%, 32.5%)
CIE-LABlab(42.40, 67.82, -41.56)
CIE-LCHlch(42.40, 79.54, 328.50°)
OKLaboklab(53.32% 0.1903 -0.1152)
OKLCHoklch(53.32% 0.222 328.8)
XYZxyz(24.8126, 12.7626, 39.1790)
Luminance0.1276 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC21AA #21AC23
analogous
#6821AC #AC21AA #AC2165
triadic
#AC21AA #AAAC21 #21AAAC
tetradic
#AC21AA #AC6821 #21AC23 #2165AC
square
#AC21AA #AC6821 #21AC23 #2165AC
split-complementary
#AC21AA #65AC21 #21AC68
monochromatic
#450D44 #791777 #AC21AA #D832D5 #E266E0

Accessibility & contrast

On white

5.91
#AC21AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AC21AA
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC21AA#FFFFFF#000000##FFFFFF
##AC21AA1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AD
Deuteranopia (green-blind)
#4C6AA7
Tritanopia (blue-blind)
#B23967
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ac21aa;
/* rgb */ color: rgb(172, 33, 170);
/* oklch */ color: oklch(53.3% 0.222 328.8);
Tailwind
colors: {
  custom: {
    50: '#c96fc4',
    500: '#ac21aa',
    950: '#000000',
  },
}
SCSS
$custom: #ac21aa;
$custom-light: #c96fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#ac21aa",
  "rgb": {
    "r": 172,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 300.863,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53315,
    "c": 0.22249,
    "h": 328.8
  },
  "luminance": 0.12761
}

Semantic roles & 50–950 ramp

primary
#AC21AA
secondary
#62C763
accent
#EB403D
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140813
muted
#827B82

Preview Lab

Preview with #AC21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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