#AC28A1#AC28A1

#AC28A1 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.3% C 0.210 H 331.9°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#AC28A1
RGBrgb(172, 40, 161)
HSLhsl(305, 62%, 42%)
HSVhsv(305, 77%, 67%)
CMYKcmyk(0%, 76.7%, 6.4%, 32.5%)
CIE-LABlab(42.56, 64.53, -35.94)
CIE-LCHlch(42.56, 73.86, 330.88°)
OKLaboklab(53.26% 0.185 -0.0989)
OKLCHoklch(53.26% 0.21 331.9)
XYZxyz(24.2051, 12.8635, 34.9194)
Luminance0.1286 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC28A1 #28AC33
analogous
#7528AC #AC28A1 #AC285F
triadic
#AC28A1 #A1AC28 #28A1AC
tetradic
#AC28A1 #AC7528 #28AC33 #285FAC
square
#AC28A1 #AC7528 #28AC33 #285FAC
split-complementary
#AC28A1 #5FAC28 #28AC75
monochromatic
#491144 #7A1C73 #AC28A1 #D23FC6 #DE71D5

Accessibility & contrast

On white

5.88
#AC28A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AC28A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC28A1
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC28A1#FFFFFF#000000##FFFFFF
##AC28A11.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D59A4
Deuteranopia (green-blind)
#546B9E
Tritanopia (blue-blind)
#B33863
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ac28a1;
/* rgb */ color: rgb(172, 40, 161);
/* oklch */ color: oklch(53.3% 0.210 331.9);
Tailwind
colors: {
  custom: {
    50: '#c971bd',
    500: '#ac28a1',
    950: '#000000',
  },
}
SCSS
$custom: #ac28a1;
$custom-light: #c971bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ac28a1",
  "rgb": {
    "r": 172,
    "g": 40,
    "b": 161
  },
  "hsl": {
    "h": 305,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53263,
    "c": 0.20977,
    "h": 331.9
  },
  "luminance": 0.12861
}

Semantic roles & 50–950 ramp

primary
#AC28A1
secondary
#6BC572
accent
#E55042
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AC28A1

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

Preview Lab → · Contrast checker → · Palette generator →

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