#AA28A2#AA28A2

#AA28A2 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.0% C 0.209 H 330.8°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#AA28A2
RGBrgb(170, 40, 162)
HSLhsl(304, 62%, 41%)
HSVhsv(304, 76%, 67%)
CMYKcmyk(0%, 76.5%, 4.7%, 33.3%)
CIE-LABlab(42.27, 64.25, -37.02)
CIE-LCHlch(42.27, 74.15, 330.05°)
OKLaboklab(53.01% 0.1829 -0.1021)
OKLCHoklch(53.01% 0.21 330.8)
XYZxyz(23.8579, 12.6742, 35.3652)
Luminance0.1267 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA28A2 #28AA30
analogous
#7128AA #AA28A2 #AA2861
triadic
#AA28A2 #A2AA28 #28A2AA
tetradic
#AA28A2 #AA7128 #28AA30 #2861AA
square
#AA28A2 #AA7128 #28AA30 #2861AA
split-complementary
#AA28A2 #61AA28 #28AA71
monochromatic
#471144 #781C73 #AA28A2 #D23EC8 #DD6FD6

Accessibility & contrast

On white

5.94
#AA28A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#AA28A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA28A2
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA28A2#FFFFFF#000000##FFFFFF
##AA28A21.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1958A5
Deuteranopia (green-blind)
#526A9F
Tritanopia (blue-blind)
#B13964
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #aa28a2;
/* rgb */ color: rgb(170, 40, 162);
/* oklch */ color: oklch(53.0% 0.209 330.8);
Tailwind
colors: {
  custom: {
    50: '#c771be',
    500: '#aa28a2',
    950: '#000000',
  },
}
SCSS
$custom: #aa28a2;
$custom-light: #c771be;
$custom-dark: #000000;
JSON
{
  "hex": "#aa28a2",
  "rgb": {
    "r": 170,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 303.692,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53009,
    "c": 0.2095,
    "h": 330.8
  },
  "luminance": 0.12672
}

Semantic roles & 50–950 ramp

primary
#AA28A2
secondary
#6AC46F
accent
#E54D43
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AA28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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