#AA28A7#AA28A7

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

Color values

HEX#AA28A7
RGBrgb(170, 40, 167)
HSLhsl(301, 62%, 41%)
HSVhsv(301, 76%, 67%)
CMYKcmyk(0%, 76.5%, 1.8%, 33.3%)
CIE-LABlab(42.54, 65.04, -39.57)
CIE-LCHlch(42.54, 76.13, 328.69°)
OKLaboklab(53.3% 0.1829 -0.1095)
OKLCHoklch(53.3% 0.213 329.1)
XYZxyz(24.3112, 12.8555, 37.7526)
Luminance0.1285 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA28A7 #28AA2B
analogous
#6C28AA #AA28A7 #AA2866
triadic
#AA28A7 #A7AA28 #28A7AA
tetradic
#AA28A7 #AA6C28 #28AA2B #2866AA
square
#AA28A7 #AA6C28 #28AA2B #2866AA
split-complementary
#AA28A7 #66AA28 #28AA6C
monochromatic
#471146 #781C76 #AA28A7 #D23ECE #DD6FDB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AA28A7#FFFFFF#000000##FFFFFF
##AA28A71.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)
#0E59AA
Deuteranopia (green-blind)
#4F6AA4
Tritanopia (blue-blind)
#B03C66
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #aa28a7;
/* rgb */ color: rgb(170, 40, 167);
/* oklch */ color: oklch(53.3% 0.213 329.1);
Tailwind
colors: {
  custom: {
    50: '#c771c1',
    500: '#aa28a7',
    950: '#000000',
  },
}
SCSS
$custom: #aa28a7;
$custom-light: #c771c1;
$custom-dark: #000000;
JSON
{
  "hex": "#aa28a7",
  "rgb": {
    "r": 170,
    "g": 40,
    "b": 167
  },
  "hsl": {
    "h": 301.385,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53296,
    "c": 0.21321,
    "h": 329.1
  },
  "luminance": 0.12854
}

Semantic roles & 50–950 ramp

primary
#AA28A7
secondary
#6AC46C
accent
#E54743
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AA28A7

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

Preview Lab → · Contrast checker → · Palette generator →

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