#AC28A8#AC28A8

#AC28A8 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.7% C 0.215 H 329.4°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#AC28A8
RGBrgb(172, 40, 168)
HSLhsl(302, 62%, 42%)
HSVhsv(302, 77%, 67%)
CMYKcmyk(0%, 76.7%, 2.3%, 32.5%)
CIE-LABlab(42.94, 65.62, -39.51)
CIE-LCHlch(42.94, 76.60, 328.95°)
OKLaboklab(53.66% 0.185 -0.1093)
OKLCHoklch(53.66% 0.215 329.4)
XYZxyz(24.8398, 13.1173, 38.2618)
Luminance0.1311 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC28A8 #28AC2C
analogous
#6E28AC #AC28A8 #AC2866
triadic
#AC28A8 #A8AC28 #28A8AC
tetradic
#AC28A8 #AC6E28 #28AC2C #2866AC
square
#AC28A8 #AC6E28 #28AC2C #2866AC
split-complementary
#AC28A8 #66AC28 #28AC6E
monochromatic
#491147 #7A1C78 #AC28A8 #D23FCE #DE71DB

Accessibility & contrast

On white

5.80
#AC28A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AC28A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC28A8
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC28A8#FFFFFF#000000##FFFFFF
##AC28A81.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5AAB
Deuteranopia (green-blind)
#506BA5
Tritanopia (blue-blind)
#B23C67
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ac28a8;
/* rgb */ color: rgb(172, 40, 168);
/* oklch */ color: oklch(53.7% 0.215 329.4);
Tailwind
colors: {
  custom: {
    50: '#c971c2',
    500: '#ac28a8',
    950: '#000000',
  },
}
SCSS
$custom: #ac28a8;
$custom-light: #c971c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ac28a8",
  "rgb": {
    "r": 172,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 301.818,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.5366,
    "c": 0.21491,
    "h": 329.4
  },
  "luminance": 0.13115
}

Semantic roles & 50–950 ramp

primary
#AC28A8
secondary
#6BC56E
accent
#E54742
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AC28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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