#AA28B2#AA28B2

#AA28B2 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.0% C 0.222 H 325.5°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#AA28B2
RGBrgb(170, 40, 178)
HSLhsl(297, 63%, 43%)
HSVhsv(297, 78%, 70%)
CMYKcmyk(4.5%, 77.5%, 0%, 30.2%)
CIE-LABlab(43.18, 66.85, -45.08)
CIE-LCHlch(43.18, 80.63, 326.00°)
OKLaboklab(53.95% 0.1826 -0.1256)
OKLCHoklch(53.95% 0.222 325.5)
XYZxyz(25.3717, 13.2797, 43.3377)
Luminance0.1328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA28B2 #30B228
analogous
#6528B2 #AA28B2 #B22875
triadic
#AA28B2 #B2AA28 #28B2AA
tetradic
#AA28B2 #B26528 #30B228 #2875B2
square
#AA28B2 #B26528 #30B228 #2875B2
split-complementary
#AA28B2 #75B228 #28B265
monochromatic
#4B124E #7A1D80 #AA28B2 #CC43D5 #DA75E0

Accessibility & contrast

On white

5.74
#AA28B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AA28B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA28B2
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA28B2#FFFFFF#000000##FFFFFF
##AA28B21.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#486BAF
Tritanopia (blue-blind)
#AE426D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #aa28b2;
/* rgb */ color: rgb(170, 40, 178);
/* oklch */ color: oklch(54.0% 0.222 325.5);
Tailwind
colors: {
  custom: {
    50: '#c772ca',
    500: '#aa28b2',
    950: '#000000',
  },
}
SCSS
$custom: #aa28b2;
$custom-light: #c772ca;
$custom-dark: #000000;
JSON
{
  "hex": "#aa28b2",
  "rgb": {
    "r": 170,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 296.522,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53954,
    "c": 0.22157,
    "h": 325.5
  },
  "luminance": 0.13278
}

Semantic roles & 50–950 ramp

primary
#AA28B2
secondary
#74C76F
accent
#E6414B
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AA28B2

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

Preview Lab → · Contrast checker → · Palette generator →

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