#AA31B8#AA31B8

#AA31B8 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.0% C 0.217 H 323.4°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#AA31B8
RGBrgb(170, 49, 184)
HSLhsl(294, 58%, 46%)
HSVhsv(294, 73%, 72%)
CMYKcmyk(7.6%, 73.4%, 0%, 27.8%)
CIE-LABlab(44.53, 65.04, -46.47)
CIE-LCHlch(44.53, 79.94, 324.46°)
OKLaboklab(55.03% 0.1744 -0.1297)
OKLCHoklch(55.03% 0.217 323.4)
XYZxyz(26.3268, 14.2050, 46.6933)
Luminance0.1420 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA31B8 #3FB831
analogous
#6631B8 #AA31B8 #B83182
triadic
#AA31B8 #B8AA31 #31B8AA
tetradic
#AA31B8 #B86631 #3FB831 #3182B8
square
#AA31B8 #B86631 #3FB831 #3182B8
split-complementary
#AA31B8 #82B831 #31B866
monochromatic
#511757 #7D2488 #AA31B8 #C555D2 #D585DE

Accessibility & contrast

On white

5.47
#AA31B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#AA31B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA31B8
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA31B8#FFFFFF#000000##FFFFFF
##AA31B81.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BC
Deuteranopia (green-blind)
#486EB5
Tritanopia (blue-blind)
#AD4A72
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #aa31b8;
/* rgb */ color: rgb(170, 49, 184);
/* oklch */ color: oklch(55.0% 0.217 323.4);
Tailwind
colors: {
  custom: {
    50: '#c775ce',
    500: '#aa31b8',
    950: '#000000',
  },
}
SCSS
$custom: #aa31b8;
$custom-light: #c775ce;
$custom-dark: #000000;
JSON
{
  "hex": "#aa31b8",
  "rgb": {
    "r": 170,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 293.778,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55025,
    "c": 0.21734,
    "h": 323.4
  },
  "luminance": 0.14203
}

Semantic roles & 50–950 ramp

primary
#AA31B8
secondary
#85C87D
accent
#E14757
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AA31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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