#AA31B3#AA31B3

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

Color values

HEX#AA31B3
RGBrgb(170, 49, 179)
HSLhsl(296, 57%, 45%)
HSVhsv(296, 73%, 70%)
CMYKcmyk(5%, 72.6%, 0%, 29.8%)
CIE-LABlab(44.23, 64.17, -44.00)
CIE-LCHlch(44.23, 77.81, 325.57°)
OKLaboklab(54.72% 0.1746 -0.1225)
OKLCHoklch(54.72% 0.213 325)
XYZxyz(25.8119, 13.9990, 43.9816)
Luminance0.1400 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA31B3 #3AB331
analogous
#6931B3 #AA31B3 #B3317B
triadic
#AA31B3 #B3AA31 #31B3AA
tetradic
#AA31B3 #B36931 #3AB331 #317BB3
square
#AA31B3 #B36931 #3AB331 #317BB3
split-complementary
#AA31B3 #7BB331 #31B369
monochromatic
#4F1753 #7C2483 #AA31B3 #C752D0 #D682DD

Accessibility & contrast

On white

5.53
#AA31B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#AA31B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA31B3
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA31B3#FFFFFF#000000##FFFFFF
##AA31B31.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#045FB7
Deuteranopia (green-blind)
#4C6EB0
Tritanopia (blue-blind)
#AE476F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #aa31b3;
/* rgb */ color: rgb(170, 49, 179);
/* oklch */ color: oklch(54.7% 0.213 325.0);
Tailwind
colors: {
  custom: {
    50: '#c775ca',
    500: '#aa31b3',
    950: '#000000',
  },
}
SCSS
$custom: #aa31b3;
$custom-light: #c775ca;
$custom-dark: #000000;
JSON
{
  "hex": "#aa31b3",
  "rgb": {
    "r": 170,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 295.846,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.5472,
    "c": 0.21329,
    "h": 325
  },
  "luminance": 0.13997
}

Semantic roles & 50–950 ramp

primary
#AA31B3
secondary
#7FC67A
accent
#E04852
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AA31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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