#AA31A9#AA31A9

#AA31A9 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.1% C 0.205 H 328.3°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#AA31A9
RGBrgb(170, 49, 169)
HSLhsl(300, 55%, 43%)
HSVhsv(300, 71%, 67%)
CMYKcmyk(0%, 71.2%, 0.6%, 33.3%)
CIE-LABlab(43.67, 62.48, -38.98)
CIE-LCHlch(43.67, 73.64, 328.04°)
OKLaboklab(54.13% 0.1747 -0.1079)
OKLCHoklch(54.13% 0.205 328.3)
XYZxyz(24.8370, 13.6090, 38.8471)
Luminance0.1361 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA31A9 #31AA32
analogous
#6E31AA #AA31A9 #AA316C
triadic
#AA31A9 #A9AA31 #31A9AA
tetradic
#AA31A9 #AA6E31 #31AA32 #316CAA
square
#AA31A9 #AA6E31 #31AA32 #316CAA
split-complementary
#AA31A9 #6CAA31 #31AA6E
monochromatic
#4B164B #7A237A #AA31A9 #CC4DCB #D97CD9

Accessibility & contrast

On white

5.64
#AA31A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#AA31A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA31A9
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA31A9#FFFFFF#000000##FFFFFF
##AA31A91.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5DAC
Deuteranopia (green-blind)
#526DA6
Tritanopia (blue-blind)
#AF436A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #aa31a9;
/* rgb */ color: rgb(170, 49, 169);
/* oklch */ color: oklch(54.1% 0.205 328.3);
Tailwind
colors: {
  custom: {
    50: '#c775c3',
    500: '#aa31a9',
    950: '#000000',
  },
}
SCSS
$custom: #aa31a9;
$custom-light: #c775c3;
$custom-dark: #000000;
JSON
{
  "hex": "#aa31a9",
  "rgb": {
    "r": 170,
    "g": 49,
    "b": 169
  },
  "hsl": {
    "h": 300.496,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54134,
    "c": 0.20533,
    "h": 328.3
  },
  "luminance": 0.13607
}

Semantic roles & 50–950 ramp

primary
#AA31A9
secondary
#75C276
accent
#DF4A49
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#130912
muted
#827B81

Preview Lab

Preview with #AA31A9

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

Preview Lab → · Contrast checker → · Palette generator →

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