#AA28A8#AA28A8

#AA28A8 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.4% C 0.214 H 328.8°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#AA28A8
RGBrgb(170, 40, 168)
HSLhsl(301, 62%, 41%)
HSVhsv(301, 76%, 67%)
CMYKcmyk(0%, 76.5%, 1.2%, 33.3%)
CIE-LABlab(42.60, 65.20, -40.07)
CIE-LCHlch(42.60, 76.53, 328.43°)
OKLaboklab(53.35% 0.1829 -0.111)
OKLCHoklch(53.35% 0.214 328.8)
XYZxyz(24.4040, 12.8926, 38.2414)
Luminance0.1289 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA28A8 #28AA2A
analogous
#6B28AA #AA28A8 #AA2867
triadic
#AA28A8 #A8AA28 #28A8AA
tetradic
#AA28A8 #AA6B28 #28AA2A #2867AA
square
#AA28A8 #AA6B28 #28AA2A #2867AA
split-complementary
#AA28A8 #67AA28 #28AA6B
monochromatic
#471146 #781C77 #AA28A8 #D23ECF #DD6FDB

Accessibility & contrast

On white

5.87
#AA28A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AA28A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA28A8
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA28A8#FFFFFF#000000##FFFFFF
##AA28A81.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5AAB
Deuteranopia (green-blind)
#4E6AA5
Tritanopia (blue-blind)
#B03D67
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #aa28a8;
/* rgb */ color: rgb(170, 40, 168);
/* oklch */ color: oklch(53.4% 0.214 328.8);
Tailwind
colors: {
  custom: {
    50: '#c771c2',
    500: '#aa28a8',
    950: '#000000',
  },
}
SCSS
$custom: #aa28a8;
$custom-light: #c771c2;
$custom-dark: #000000;
JSON
{
  "hex": "#aa28a8",
  "rgb": {
    "r": 170,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 300.923,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53354,
    "c": 0.21396,
    "h": 328.8
  },
  "luminance": 0.12891
}

Semantic roles & 50–950 ramp

primary
#AA28A8
secondary
#6AC46B
accent
#E54543
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AA28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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