#AA31A4#AA31A4

#AA31A4 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.9% C 0.201 H 330.1°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#AA31A4
RGBrgb(170, 49, 164)
HSLhsl(303, 55%, 43%)
HSVhsv(303, 71%, 67%)
CMYKcmyk(0%, 71.2%, 3.5%, 33.3%)
CIE-LABlab(43.40, 61.65, -36.43)
CIE-LCHlch(43.40, 71.61, 329.42°)
OKLaboklab(53.85% 0.1746 -0.1005)
OKLCHoklch(53.85% 0.201 330.1)
XYZxyz(24.3766, 13.4249, 36.4221)
Luminance0.1342 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA31A4 #31AA37
analogous
#7331AA #AA31A4 #AA3168
triadic
#AA31A4 #A4AA31 #31A4AA
tetradic
#AA31A4 #AA7331 #31AA37 #3168AA
square
#AA31A4 #AA7331 #31AA37 #3168AA
split-complementary
#AA31A4 #68AA31 #31AA73
monochromatic
#4B1648 #7A2376 #AA31A4 #CC4DC5 #D97CD5

Accessibility & contrast

On white

5.70
#AA31A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AA31A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA31A4
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA31A4#FFFFFF#000000##FFFFFF
##AA31A41.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245CA7
Deuteranopia (green-blind)
#546CA1
Tritanopia (blue-blind)
#B04067
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #aa31a4;
/* rgb */ color: rgb(170, 49, 164);
/* oklch */ color: oklch(53.9% 0.201 330.1);
Tailwind
colors: {
  custom: {
    50: '#c775bf',
    500: '#aa31a4',
    950: '#000000',
  },
}
SCSS
$custom: #aa31a4;
$custom-light: #c775bf;
$custom-dark: #000000;
JSON
{
  "hex": "#aa31a4",
  "rgb": {
    "r": 170,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 302.975,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53853,
    "c": 0.20145,
    "h": 330.1
  },
  "luminance": 0.13423
}

Semantic roles & 50–950 ramp

primary
#AA31A4
secondary
#75C279
accent
#DF5149
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #AA31A4

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

Preview Lab → · Contrast checker → · Palette generator →

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