#AA31B5#AA31B5

#AA31B5 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.8% C 0.215 H 324.3°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#AA31B5
RGBrgb(170, 49, 181)
HSLhsl(295, 57%, 45%)
HSVhsv(295, 73%, 71%)
CMYKcmyk(6.1%, 72.9%, 0%, 29%)
CIE-LABlab(44.35, 64.52, -44.99)
CIE-LCHlch(44.35, 78.65, 325.11°)
OKLaboklab(54.84% 0.1746 -0.1253)
OKLCHoklch(54.84% 0.215 324.3)
XYZxyz(26.0157, 14.0805, 45.0546)
Luminance0.1408 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA31B5 #3CB531
analogous
#6831B5 #AA31B5 #B5317E
triadic
#AA31B5 #B5AA31 #31B5AA
tetradic
#AA31B5 #B56831 #3CB531 #317EB5
square
#AA31B5 #B56831 #3CB531 #317EB5
split-complementary
#AA31B5 #7EB531 #31B568
monochromatic
#501755 #7D2485 #AA31B5 #C653D0 #D683DD

Accessibility & contrast

On white

5.50
#AA31B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AA31B5
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA31B5#FFFFFF#000000##FFFFFF
##AA31B51.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060B9
Deuteranopia (green-blind)
#4A6EB2
Tritanopia (blue-blind)
#AD4870
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #aa31b5;
/* rgb */ color: rgb(170, 49, 181);
/* oklch */ color: oklch(54.8% 0.215 324.3);
Tailwind
colors: {
  custom: {
    50: '#c775cc',
    500: '#aa31b5',
    950: '#000000',
  },
}
SCSS
$custom: #aa31b5;
$custom-light: #c775cc;
$custom-dark: #000000;
JSON
{
  "hex": "#aa31b5",
  "rgb": {
    "r": 170,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 295,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54841,
    "c": 0.2149,
    "h": 324.3
  },
  "luminance": 0.14079
}

Semantic roles & 50–950 ramp

primary
#AA31B5
secondary
#81C77B
accent
#E14754
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AA31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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