#AC28A7#AC28A7

#AC28A7 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.6% C 0.214 H 329.8°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#AC28A7
RGBrgb(172, 40, 167)
HSLhsl(302, 62%, 42%)
HSVhsv(302, 77%, 67%)
CMYKcmyk(0%, 76.7%, 2.9%, 32.5%)
CIE-LABlab(42.88, 65.47, -39.01)
CIE-LCHlch(42.88, 76.21, 329.21°)
OKLaboklab(53.6% 0.185 -0.1078)
OKLCHoklch(53.6% 0.214 329.8)
XYZxyz(24.7470, 13.0802, 37.7731)
Luminance0.1308 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC28A7 #28AC2D
analogous
#6F28AC #AC28A7 #AC2865
triadic
#AC28A7 #A7AC28 #28A7AC
tetradic
#AC28A7 #AC6F28 #28AC2D #2865AC
square
#AC28A7 #AC6F28 #28AC2D #2865AC
split-complementary
#AC28A7 #65AC28 #28AC6F
monochromatic
#491147 #7A1C77 #AC28A7 #D23FCD #DE71DA

Accessibility & contrast

On white

5.81
#AC28A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AC28A7
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC28A7#FFFFFF#000000##FFFFFF
##AC28A71.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125AAA
Deuteranopia (green-blind)
#516BA4
Tritanopia (blue-blind)
#B23B66
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ac28a7;
/* rgb */ color: rgb(172, 40, 167);
/* oklch */ color: oklch(53.6% 0.214 329.8);
Tailwind
colors: {
  custom: {
    50: '#c971c1',
    500: '#ac28a7',
    950: '#000000',
  },
}
SCSS
$custom: #ac28a7;
$custom-light: #c971c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ac28a7",
  "rgb": {
    "r": 172,
    "g": 40,
    "b": 167
  },
  "hsl": {
    "h": 302.273,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53602,
    "c": 0.21417,
    "h": 329.8
  },
  "luminance": 0.13078
}

Semantic roles & 50–950 ramp

primary
#AC28A7
secondary
#6BC56E
accent
#E54942
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AC28A7

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

Preview Lab → · Contrast checker → · Palette generator →

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