#AA31B1#AA31B1

#AA31B1 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.6% C 0.212 H 325.6°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#AA31B1
RGBrgb(170, 49, 177)
HSLhsl(297, 57%, 44%)
HSVhsv(297, 72%, 69%)
CMYKcmyk(4%, 72.3%, 0%, 30.6%)
CIE-LABlab(44.12, 63.83, -43.00)
CIE-LCHlch(44.12, 76.96, 326.03°)
OKLaboklab(54.6% 0.1747 -0.1196)
OKLCHoklch(54.6% 0.212 325.6)
XYZxyz(25.6111, 13.9187, 42.9241)
Luminance0.1392 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA31B1 #38B131
analogous
#6A31B1 #AA31B1 #B13178
triadic
#AA31B1 #B1AA31 #31B1AA
tetradic
#AA31B1 #B16A31 #38B131 #3178B1
square
#AA31B1 #B16A31 #38B131 #3178B1
split-complementary
#AA31B1 #78B131 #31B16A
monochromatic
#4E1651 #7C2481 #AA31B1 #C851CF #D780DC

Accessibility & contrast

On white

5.55
#AA31B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#AA31B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA31B1
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA31B1#FFFFFF#000000##FFFFFF
##AA31B11.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5FB5
Deuteranopia (green-blind)
#4D6DAE
Tritanopia (blue-blind)
#AE466E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #aa31b1;
/* rgb */ color: rgb(170, 49, 177);
/* oklch */ color: oklch(54.6% 0.212 325.6);
Tailwind
colors: {
  custom: {
    50: '#c775c9',
    500: '#aa31b1',
    950: '#000000',
  },
}
SCSS
$custom: #aa31b1;
$custom-light: #c775c9;
$custom-dark: #000000;
JSON
{
  "hex": "#aa31b1",
  "rgb": {
    "r": 170,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 296.719,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54601,
    "c": 0.21168,
    "h": 325.6
  },
  "luminance": 0.13917
}

Semantic roles & 50–950 ramp

primary
#AA31B1
secondary
#7DC579
accent
#E04850
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130913
muted
#827B82

Preview Lab

Preview with #AA31B1

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

Preview Lab → · Contrast checker → · Palette generator →

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