#AA31A8#AA31A8

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

Color values

HEX#AA31A8
RGBrgb(170, 49, 168)
HSLhsl(301, 55%, 43%)
HSVhsv(301, 71%, 67%)
CMYKcmyk(0%, 71.2%, 1.2%, 33.3%)
CIE-LABlab(43.61, 62.31, -38.47)
CIE-LCHlch(43.61, 73.23, 328.31°)
OKLaboklab(54.08% 0.1747 -0.1064)
OKLCHoklch(54.08% 0.205 328.7)
XYZxyz(24.7435, 13.5716, 38.3546)
Luminance0.1357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA31A8 #31AA33
analogous
#7031AA #AA31A8 #AA316B
triadic
#AA31A8 #A8AA31 #31A8AA
tetradic
#AA31A8 #AA7031 #31AA33 #316BAA
square
#AA31A8 #AA7031 #31AA33 #316BAA
split-complementary
#AA31A8 #6BAA31 #31AA70
monochromatic
#4B164A #7A2379 #AA31A8 #CC4DC9 #D97CD8

Accessibility & contrast

On white

5.65
#AA31A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#AA31A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA31A8
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA31A8#FFFFFF#000000##FFFFFF
##AA31A81.005.653.715.65
#FFFFFF5.651.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5DAB
Deuteranopia (green-blind)
#526DA5
Tritanopia (blue-blind)
#B04269
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #aa31a8;
/* rgb */ color: rgb(170, 49, 168);
/* oklch */ color: oklch(54.1% 0.205 328.7);
Tailwind
colors: {
  custom: {
    50: '#c775c2',
    500: '#aa31a8',
    950: '#000000',
  },
}
SCSS
$custom: #aa31a8;
$custom-light: #c775c2;
$custom-dark: #000000;
JSON
{
  "hex": "#aa31a8",
  "rgb": {
    "r": 170,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 300.992,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54077,
    "c": 0.20455,
    "h": 328.7
  },
  "luminance": 0.1357
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AA31A8

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

Preview Lab → · Contrast checker → · Palette generator →

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