#AA31AA#AA31AA

#AA31AA is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.2% C 0.206 H 328.0°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#AA31AA
RGBrgb(170, 49, 170)
HSLhsl(300, 55%, 43%)
HSVhsv(300, 71%, 67%)
CMYKcmyk(0%, 71.2%, 0%, 33.3%)
CIE-LABlab(43.72, 62.64, -39.48)
CIE-LCHlch(43.72, 74.05, 327.78°)
OKLaboklab(54.19% 0.1747 -0.1093)
OKLCHoklch(54.19% 0.206 328)
XYZxyz(24.9313, 13.6467, 39.3434)
Luminance0.1364 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA31AA #31AA31
analogous
#6D31AA #AA31AA #AA316D
triadic
#AA31AA #AAAA31 #31AAAA
tetradic
#AA31AA #AA6D31 #31AA31 #316DAA
square
#AA31AA #AA6D31 #31AA31 #316DAA
split-complementary
#AA31AA #6DAA31 #31AA6D
monochromatic
#4B164B #7A237A #AA31AA #CC4DCC #D97CD9

Accessibility & contrast

On white

5.63
#AA31AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#AA31AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA31AA
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA31AA#FFFFFF#000000##FFFFFF
##AA31AA1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5DAD
Deuteranopia (green-blind)
#516DA7
Tritanopia (blue-blind)
#AF436A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #aa31aa;
/* rgb */ color: rgb(170, 49, 170);
/* oklch */ color: oklch(54.2% 0.206 328.0);
Tailwind
colors: {
  custom: {
    50: '#c775c4',
    500: '#aa31aa',
    950: '#000000',
  },
}
SCSS
$custom: #aa31aa;
$custom-light: #c775c4;
$custom-dark: #000000;
JSON
{
  "hex": "#aa31aa",
  "rgb": {
    "r": 170,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 300,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54192,
    "c": 0.20612,
    "h": 328
  },
  "luminance": 0.13645
}

Semantic roles & 50–950 ramp

primary
#AA31AA
secondary
#75C275
accent
#DF4949
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#130912
muted
#827B81

Preview Lab

Preview with #AA31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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