#AA31A1#AA31A1

#AA31A1 is a mid, vivid purple. Relative luminance 0.133; OKLCH L 53.7% C 0.199 H 331.2°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#AA31A1
RGBrgb(170, 49, 161)
HSLhsl(304, 55%, 43%)
HSVhsv(304, 71%, 67%)
CMYKcmyk(0%, 71.2%, 5.3%, 33.3%)
CIE-LABlab(43.24, 61.17, -34.88)
CIE-LCHlch(43.24, 70.42, 330.30°)
OKLaboklab(53.69% 0.1745 -0.096)
OKLCHoklch(53.69% 0.199 331.2)
XYZxyz(24.1089, 13.3178, 35.0121)
Luminance0.1332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA31A1 #31AA3A
analogous
#7631AA #AA31A1 #AA3164
triadic
#AA31A1 #A1AA31 #31A1AA
tetradic
#AA31A1 #AA7631 #31AA3A #3164AA
square
#AA31A1 #AA7631 #31AA3A #3164AA
split-complementary
#AA31A1 #64AA31 #31AA76
monochromatic
#4B1647 #7A2374 #AA31A1 #CC4DC2 #D97CD2

Accessibility & contrast

On white

5.73
#AA31A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AA31A1
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA31A1#FFFFFF#000000##FFFFFF
##AA31A11.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275BA4
Deuteranopia (green-blind)
#566C9E
Tritanopia (blue-blind)
#B13F65
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #aa31a1;
/* rgb */ color: rgb(170, 49, 161);
/* oklch */ color: oklch(53.7% 0.199 331.2);
Tailwind
colors: {
  custom: {
    50: '#c775bd',
    500: '#aa31a1',
    950: '#000000',
  },
}
SCSS
$custom: #aa31a1;
$custom-light: #c775bd;
$custom-dark: #000000;
JSON
{
  "hex": "#aa31a1",
  "rgb": {
    "r": 170,
    "g": 49,
    "b": 161
  },
  "hsl": {
    "h": 304.463,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53687,
    "c": 0.19915,
    "h": 331.2
  },
  "luminance": 0.13316
}

Semantic roles & 50–950 ramp

primary
#AA31A1
secondary
#75C27B
accent
#DF5449
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #AA31A1

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

Preview Lab → · Contrast checker → · Palette generator →

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