#AC28D1#AC28D1

#AC28D1 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 56.3% C 0.247 H 317.2°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#AC28D1
RGBrgb(172, 40, 209)
HSLhsl(287, 68%, 49%)
HSVhsv(287, 81%, 82%)
CMYKcmyk(17.7%, 80.9%, 0%, 18%)
CIE-LABlab(45.49, 72.65, -59.44)
CIE-LCHlch(45.49, 93.87, 320.71°)
OKLaboklab(56.28% 0.1811 -0.1675)
OKLCHoklch(56.28% 0.247 317.2)
XYZxyz(29.2790, 14.8930, 61.6416)
Luminance0.1489 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC28D1 #4DD128
analogous
#5828D1 #AC28D1 #D128A2
triadic
#AC28D1 #D1AC28 #28D1AC
tetradic
#AC28D1 #D15828 #4DD128 #28A2D1
square
#AC28D1 #D15828 #4DD128 #28A2D1
split-complementary
#AC28D1 #A2D128 #28D158
monochromatic
#57146A #821E9E #AC28D1 #C157DF #D48BE9

Accessibility & contrast

On white

5.28
#AC28D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#AC28D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC28D1
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC28D1#FFFFFF#000000##FFFFFF
##AC28D11.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D5
Deuteranopia (green-blind)
#2B6FCD
Tritanopia (blue-blind)
#AA517E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ac28d1;
/* rgb */ color: rgb(172, 40, 209);
/* oklch */ color: oklch(56.3% 0.247 317.2);
Tailwind
colors: {
  custom: {
    50: '#ca73e0',
    500: '#ac28d1',
    950: '#000000',
  },
}
SCSS
$custom: #ac28d1;
$custom-light: #ca73e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ac28d1",
  "rgb": {
    "r": 172,
    "g": 40,
    "b": 209
  },
  "hsl": {
    "h": 286.864,
    "s": 67.871,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56275,
    "c": 0.24671,
    "h": 317.2
  },
  "luminance": 0.14892
}

Semantic roles & 50–950 ramp

primary
#AC28D1
secondary
#94D382
accent
#EB3D63
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140915
muted
#827B83

Preview Lab

Preview with #AC28D1

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

Preview Lab → · Contrast checker → · Palette generator →

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