#AA31B4#AA31B4

#AA31B4 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.8% C 0.214 H 324.6°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#AA31B4
RGBrgb(170, 49, 180)
HSLhsl(295, 57%, 45%)
HSVhsv(295, 73%, 71%)
CMYKcmyk(5.6%, 72.8%, 0%, 29.4%)
CIE-LABlab(44.29, 64.34, -44.49)
CIE-LCHlch(44.29, 78.23, 325.34°)
OKLaboklab(54.78% 0.1746 -0.1239)
OKLCHoklch(54.78% 0.214 324.6)
XYZxyz(25.9134, 14.0396, 44.5162)
Luminance0.1404 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA31B4 #3BB431
analogous
#6931B4 #AA31B4 #B4317C
triadic
#AA31B4 #B4AA31 #31B4AA
tetradic
#AA31B4 #B46931 #3BB431 #317CB4
square
#AA31B4 #B46931 #3BB431 #317CB4
split-complementary
#AA31B4 #7CB431 #31B469
monochromatic
#4F1754 #7D2484 #AA31B4 #C652D0 #D682DD

Accessibility & contrast

On white

5.52
#AA31B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#AA31B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA31B4
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA31B4#FFFFFF#000000##FFFFFF
##AA31B41.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#4B6EB1
Tritanopia (blue-blind)
#AE4870
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #aa31b4;
/* rgb */ color: rgb(170, 49, 180);
/* oklch */ color: oklch(54.8% 0.214 324.6);
Tailwind
colors: {
  custom: {
    50: '#c775cb',
    500: '#aa31b4',
    950: '#000000',
  },
}
SCSS
$custom: #aa31b4;
$custom-light: #c775cb;
$custom-dark: #000000;
JSON
{
  "hex": "#aa31b4",
  "rgb": {
    "r": 170,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 295.42,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54781,
    "c": 0.2141,
    "h": 324.6
  },
  "luminance": 0.14038
}

Semantic roles & 50–950 ramp

primary
#AA31B4
secondary
#80C67B
accent
#E04753
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AA31B4

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

Preview Lab → · Contrast checker → · Palette generator →

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