#AA28E2#AA28E2

#AA28E2 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 57.2% C 0.260 H 312.4°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#AA28E2
RGBrgb(170, 40, 226)
HSLhsl(282, 76%, 52%)
HSVhsv(282, 82%, 89%)
CMYKcmyk(24.8%, 82.3%, 0%, 11.4%)
CIE-LABlab(46.39, 75.50, -67.73)
CIE-LCHlch(46.39, 101.42, 318.11°)
OKLaboklab(57.22% 0.1751 -0.192)
OKLCHoklch(57.22% 0.26 312.4)
XYZxyz(31.0613, 15.5555, 73.3030)
Luminance0.1555 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA28E2 #60E228
analogous
#4D28E2 #AA28E2 #E228BD
triadic
#AA28E2 #E2AA28 #28E2AA
tetradic
#AA28E2 #E24D28 #60E228 #28BDE2
square
#AA28E2 #E24D28 #60E228 #28BDE2
split-complementary
#AA28E2 #BDE228 #28E24D
monochromatic
#5E117F #8518B4 #AA28E2 #BF5EE9 #D594F1

Accessibility & contrast

On white

5.11
#AA28E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#AA28E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA28E2
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA28E2#FFFFFF#000000##FFFFFF
##AA28E21.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E7
Deuteranopia (green-blind)
#0070DE
Tritanopia (blue-blind)
#A35988
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #aa28e2;
/* rgb */ color: rgb(170, 40, 226);
/* oklch */ color: oklch(57.2% 0.260 312.4);
Tailwind
colors: {
  custom: {
    50: '#c974ec',
    500: '#aa28e2',
    950: '#000000',
  },
}
SCSS
$custom: #aa28e2;
$custom-light: #c974ec;
$custom-dark: #000000;
JSON
{
  "hex": "#aa28e2",
  "rgb": {
    "r": 170,
    "g": 40,
    "b": 226
  },
  "hsl": {
    "h": 281.935,
    "s": 76.23,
    "l": 52.157
  },
  "oklch": {
    "l": 0.57221,
    "c": 0.25984,
    "h": 312.4
  },
  "luminance": 0.15555
}

Semantic roles & 50–950 ramp

primary
#AA28E2
secondary
#A3DC8A
accent
#F3356E
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140916
muted
#837B84

Preview Lab

Preview with #AA28E2

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

Preview Lab → · Contrast checker → · Palette generator →

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