#AA31B2#AA31B2

#AA31B2 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.7% C 0.212 H 325.3°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#AA31B2
RGBrgb(170, 49, 178)
HSLhsl(296, 57%, 45%)
HSVhsv(296, 72%, 70%)
CMYKcmyk(4.5%, 72.5%, 0%, 30.2%)
CIE-LABlab(44.17, 64.00, -43.50)
CIE-LCHlch(44.17, 77.38, 325.80°)
OKLaboklab(54.66% 0.1747 -0.121)
OKLCHoklch(54.66% 0.212 325.3)
XYZxyz(25.7112, 13.9587, 43.4509)
Luminance0.1396 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA31B2 #39B231
analogous
#6A31B2 #AA31B2 #B2317A
triadic
#AA31B2 #B2AA31 #31B2AA
tetradic
#AA31B2 #B26A31 #39B231 #317AB2
square
#AA31B2 #B26A31 #39B231 #317AB2
split-complementary
#AA31B2 #7AB231 #31B26A
monochromatic
#4E1752 #7C2482 #AA31B2 #C751CF #D781DC

Accessibility & contrast

On white

5.54
#AA31B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#AA31B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA31B2
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA31B2#FFFFFF#000000##FFFFFF
##AA31B21.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#085FB6
Deuteranopia (green-blind)
#4C6DAF
Tritanopia (blue-blind)
#AE476F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #aa31b2;
/* rgb */ color: rgb(170, 49, 178);
/* oklch */ color: oklch(54.7% 0.212 325.3);
Tailwind
colors: {
  custom: {
    50: '#c775c9',
    500: '#aa31b2',
    950: '#000000',
  },
}
SCSS
$custom: #aa31b2;
$custom-light: #c775c9;
$custom-dark: #000000;
JSON
{
  "hex": "#aa31b2",
  "rgb": {
    "r": 170,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 296.279,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54661,
    "c": 0.21248,
    "h": 325.3
  },
  "luminance": 0.13957
}

Semantic roles & 50–950 ramp

primary
#AA31B2
secondary
#7EC579
accent
#E04851
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130913
muted
#827B82

Preview Lab

Preview with #AA31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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