#AA31AB#AA31AB

#AA31AB is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.2% C 0.207 H 327.6°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#AA31AB
RGBrgb(170, 49, 171)
HSLhsl(300, 55%, 43%)
HSVhsv(300, 71%, 67%)
CMYKcmyk(0.6%, 71.3%, 0%, 32.9%)
CIE-LABlab(43.78, 62.81, -39.99)
CIE-LCHlch(43.78, 74.46, 327.52°)
OKLaboklab(54.25% 0.1747 -0.1108)
OKLCHoklch(54.25% 0.207 327.6)
XYZxyz(25.0262, 13.6847, 39.8435)
Luminance0.1368 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA31AB #32AB31
analogous
#6D31AB #AA31AB #AB316F
triadic
#AA31AB #ABAA31 #31ABAA
tetradic
#AA31AB #AB6D31 #32AB31 #316FAB
square
#AA31AB #AB6D31 #32AB31 #316FAB
split-complementary
#AA31AB #6FAB31 #31AB6D
monochromatic
#4B164C #7B237B #AA31AB #CB4DCC #D97DDA

Accessibility & contrast

On white

5.62
#AA31AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#AA31AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA31AB
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA31AB#FFFFFF#000000##FFFFFF
##AA31AB1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5DAE
Deuteranopia (green-blind)
#516DA8
Tritanopia (blue-blind)
#AF446B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #aa31ab;
/* rgb */ color: rgb(170, 49, 171);
/* oklch */ color: oklch(54.2% 0.207 327.6);
Tailwind
colors: {
  custom: {
    50: '#c775c4',
    500: '#aa31ab',
    950: '#000000',
  },
}
SCSS
$custom: #aa31ab;
$custom-light: #c775c4;
$custom-dark: #000000;
JSON
{
  "hex": "#aa31ab",
  "rgb": {
    "r": 170,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 299.508,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54249,
    "c": 0.20691,
    "h": 327.6
  },
  "luminance": 0.13683
}

Semantic roles & 50–950 ramp

primary
#AA31AB
secondary
#76C275
accent
#DF494A
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #AA31AB

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

Preview Lab → · Contrast checker → · Palette generator →

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