#AA31B6#AA31B6

#AA31B6 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.9% C 0.216 H 324.0°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#AA31B6
RGBrgb(170, 49, 182)
HSLhsl(295, 58%, 45%)
HSVhsv(295, 73%, 71%)
CMYKcmyk(6.6%, 73.1%, 0%, 28.6%)
CIE-LABlab(44.41, 64.69, -45.48)
CIE-LCHlch(44.41, 79.08, 324.89°)
OKLaboklab(54.9% 0.1745 -0.1268)
OKLCHoklch(54.9% 0.216 324)
XYZxyz(26.1186, 14.1217, 45.5969)
Luminance0.1412 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA31B6 #3DB631
analogous
#6731B6 #AA31B6 #B63180
triadic
#AA31B6 #B6AA31 #31B6AA
tetradic
#AA31B6 #B66731 #3DB631 #3180B6
square
#AA31B6 #B66731 #3DB631 #3180B6
split-complementary
#AA31B6 #80B631 #31B667
monochromatic
#501756 #7D2486 #AA31B6 #C553D1 #D684DE

Accessibility & contrast

On white

5.49
#AA31B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#AA31B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA31B6
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA31B6#FFFFFF#000000##FFFFFF
##AA31B61.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BA
Deuteranopia (green-blind)
#496EB3
Tritanopia (blue-blind)
#AD4971
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #aa31b6;
/* rgb */ color: rgb(170, 49, 182);
/* oklch */ color: oklch(54.9% 0.216 324.0);
Tailwind
colors: {
  custom: {
    50: '#c775cc',
    500: '#aa31b6',
    950: '#000000',
  },
}
SCSS
$custom: #aa31b6;
$custom-light: #c775cc;
$custom-dark: #000000;
JSON
{
  "hex": "#aa31b6",
  "rgb": {
    "r": 170,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 294.586,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.54902,
    "c": 0.21572,
    "h": 324
  },
  "luminance": 0.1412
}

Semantic roles & 50–950 ramp

primary
#AA31B6
secondary
#82C77C
accent
#E14755
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AA31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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