#AC21A2#AC21A2

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

Color values

HEX#AC21A2
RGBrgb(172, 33, 162)
HSLhsl(304, 68%, 40%)
HSVhsv(304, 81%, 67%)
CMYKcmyk(0%, 80.8%, 5.8%, 32.5%)
CIE-LABlab(41.95, 66.58, -37.49)
CIE-LCHlch(41.95, 76.41, 330.61°)
OKLaboklab(52.85% 0.1905 -0.1034)
OKLCHoklch(52.85% 0.217 331.5)
XYZxyz(24.0787, 12.4690, 35.3140)
Luminance0.1247 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC21A2 #21AC2B
analogous
#7121AC #AC21A2 #AC215C
triadic
#AC21A2 #A2AC21 #21A2AC
tetradic
#AC21A2 #AC7121 #21AC2B #215CAC
square
#AC21A2 #AC7121 #21AC2B #215CAC
split-complementary
#AC21A2 #5CAC21 #21AC71
monochromatic
#450D41 #791772 #AC21A2 #D832CC #E266D9

Accessibility & contrast

On white

6.01
#AC21A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#AC21A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC21A2
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC21A2#FFFFFF#000000##FFFFFF
##AC21A21.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ac21a2;
/* rgb */ color: rgb(172, 33, 162);
/* oklch */ color: oklch(52.8% 0.217 331.5);
Tailwind
colors: {
  custom: {
    50: '#c96fbe',
    500: '#ac21a2',
    950: '#000000',
  },
}
SCSS
$custom: #ac21a2;
$custom-light: #c96fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#ac21a2",
  "rgb": {
    "r": 172,
    "g": 33,
    "b": 162
  },
  "hsl": {
    "h": 304.317,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.52849,
    "c": 0.21676,
    "h": 331.5
  },
  "luminance": 0.12467
}

Semantic roles & 50–950 ramp

primary
#AC21A2
secondary
#62C769
accent
#EB4A3D
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AC21A2

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

Preview Lab → · Contrast checker → · Palette generator →

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