#AA31A2#AA31A2

#AA31A2 is a mid, vivid purple. Relative luminance 0.134; OKLCH L 53.7% C 0.200 H 330.8°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#AA31A2
RGBrgb(170, 49, 162)
HSLhsl(304, 55%, 43%)
HSVhsv(304, 71%, 67%)
CMYKcmyk(0%, 71.2%, 4.7%, 33.3%)
CIE-LABlab(43.29, 61.33, -35.40)
CIE-LCHlch(43.29, 70.81, 330.01°)
OKLaboklab(53.74% 0.1745 -0.0975)
OKLCHoklch(53.74% 0.2 330.8)
XYZxyz(24.1974, 13.3532, 35.4784)
Luminance0.1335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA31A2 #31AA39
analogous
#7531AA #AA31A2 #AA3165
triadic
#AA31A2 #A2AA31 #31A2AA
tetradic
#AA31A2 #AA7531 #31AA39 #3165AA
square
#AA31A2 #AA7531 #31AA39 #3165AA
split-complementary
#AA31A2 #65AA31 #31AA75
monochromatic
#4B1647 #7A2375 #AA31A2 #CC4DC3 #D97CD3

Accessibility & contrast

On white

5.72
#AA31A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AA31A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA31A2
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA31A2#FFFFFF#000000##FFFFFF
##AA31A21.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265CA5
Deuteranopia (green-blind)
#556C9F
Tritanopia (blue-blind)
#B13F66
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #aa31a2;
/* rgb */ color: rgb(170, 49, 162);
/* oklch */ color: oklch(53.7% 0.200 330.8);
Tailwind
colors: {
  custom: {
    50: '#c775be',
    500: '#aa31a2',
    950: '#000000',
  },
}
SCSS
$custom: #aa31a2;
$custom-light: #c775be;
$custom-dark: #000000;
JSON
{
  "hex": "#aa31a2",
  "rgb": {
    "r": 170,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 303.967,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53742,
    "c": 0.19991,
    "h": 330.8
  },
  "luminance": 0.13351
}

Semantic roles & 50–950 ramp

primary
#AA31A2
secondary
#75C27A
accent
#DF5349
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #AA31A2

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

Preview Lab → · Contrast checker → · Palette generator →

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