#AA31B9#AA31B9

#AA31B9 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.1% C 0.218 H 323.1°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#AA31B9
RGBrgb(170, 49, 185)
HSLhsl(293, 58%, 46%)
HSVhsv(293, 74%, 73%)
CMYKcmyk(8.1%, 73.5%, 0%, 27.5%)
CIE-LABlab(44.59, 65.22, -46.96)
CIE-LCHlch(44.59, 80.37, 324.25°)
OKLaboklab(55.09% 0.1744 -0.1311)
OKLCHoklch(55.09% 0.218 323.1)
XYZxyz(26.4320, 14.2470, 47.2473)
Luminance0.1424 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA31B9 #40B931
analogous
#6631B9 #AA31B9 #B93184
triadic
#AA31B9 #B9AA31 #31B9AA
tetradic
#AA31B9 #B96631 #40B931 #3184B9
square
#AA31B9 #B96631 #40B931 #3184B9
split-complementary
#AA31B9 #84B931 #31B966
monochromatic
#511758 #7E2489 #AA31B9 #C455D2 #D586DF

Accessibility & contrast

On white

5.46
#AA31B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#AA31B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA31B9
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA31B9#FFFFFF#000000##FFFFFF
##AA31B91.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BD
Deuteranopia (green-blind)
#476EB6
Tritanopia (blue-blind)
#AD4A73
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #aa31b9;
/* rgb */ color: rgb(170, 49, 185);
/* oklch */ color: oklch(55.1% 0.218 323.1);
Tailwind
colors: {
  custom: {
    50: '#c776cf',
    500: '#aa31b9',
    950: '#000000',
  },
}
SCSS
$custom: #aa31b9;
$custom-light: #c776cf;
$custom-dark: #000000;
JSON
{
  "hex": "#aa31b9",
  "rgb": {
    "r": 170,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 293.382,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55086,
    "c": 0.21815,
    "h": 323.1
  },
  "luminance": 0.14245
}

Semantic roles & 50–950 ramp

primary
#AA31B9
secondary
#86C87D
accent
#E14658
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AA31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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