#AC21AB#AC21AB

#AC21AB is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.4% C 0.223 H 328.5°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#AC21AB
RGBrgb(172, 33, 171)
HSLhsl(300, 68%, 40%)
HSVhsv(300, 81%, 67%)
CMYKcmyk(0%, 80.8%, 0.6%, 32.5%)
CIE-LABlab(42.46, 67.98, -42.06)
CIE-LCHlch(42.46, 79.94, 328.25°)
OKLaboklab(53.37% 0.1903 -0.1167)
OKLCHoklch(53.37% 0.223 328.5)
XYZxyz(24.9075, 12.8006, 39.6791)
Luminance0.1280 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC21AB #21AC22
analogous
#6821AC #AC21AB #AC2165
triadic
#AC21AB #ABAC21 #21ABAC
tetradic
#AC21AB #AC6821 #21AC22 #2165AC
square
#AC21AB #AC6821 #21AC22 #2165AC
split-complementary
#AC21AB #65AC21 #21AC68
monochromatic
#450D45 #791778 #AC21AB #D832D7 #E266E1

Accessibility & contrast

On white

5.90
#AC21AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#AC21AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC21AB
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC21AB#FFFFFF#000000##FFFFFF
##AC21AB1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AF
Deuteranopia (green-blind)
#4C6AA8
Tritanopia (blue-blind)
#B23A67
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ac21ab;
/* rgb */ color: rgb(172, 33, 171);
/* oklch */ color: oklch(53.4% 0.223 328.5);
Tailwind
colors: {
  custom: {
    50: '#c96fc4',
    500: '#ac21ab',
    950: '#000000',
  },
}
SCSS
$custom: #ac21ab;
$custom-light: #c96fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#ac21ab",
  "rgb": {
    "r": 172,
    "g": 33,
    "b": 171
  },
  "hsl": {
    "h": 300.432,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53375,
    "c": 0.22322,
    "h": 328.5
  },
  "luminance": 0.12799
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AC21AB

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

Preview Lab → · Contrast checker → · Palette generator →

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