#AA31AF#AA31AF

#AA31AF is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.5% C 0.210 H 326.3°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#AA31AF
RGBrgb(170, 49, 175)
HSLhsl(298, 56%, 44%)
HSVhsv(298, 72%, 69%)
CMYKcmyk(2.9%, 72%, 0%, 31.4%)
CIE-LABlab(44.00, 63.49, -42.00)
CIE-LCHlch(44.00, 76.12, 326.51°)
OKLaboklab(54.48% 0.1747 -0.1166)
OKLCHoklch(54.48% 0.21 326.3)
XYZxyz(25.4133, 13.8395, 41.8819)
Luminance0.1384 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA31AF #36AF31
analogous
#6B31AF #AA31AF #AF3175
triadic
#AA31AF #AFAA31 #31AFAA
tetradic
#AA31AF #AF6B31 #36AF31 #3175AF
square
#AA31AF #AF6B31 #36AF31 #3175AF
split-complementary
#AA31AF #75AF31 #31AF6B
monochromatic
#4D164F #7C247F #AA31AF #C94FCE #D87FDB

Accessibility & contrast

On white

5.57
#AA31AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#AA31AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA31AF
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA31AF#FFFFFF#000000##FFFFFF
##AA31AF1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115EB2
Deuteranopia (green-blind)
#4E6DAC
Tritanopia (blue-blind)
#AE456D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #aa31af;
/* rgb */ color: rgb(170, 49, 175);
/* oklch */ color: oklch(54.5% 0.210 326.3);
Tailwind
colors: {
  custom: {
    50: '#c775c7',
    500: '#aa31af',
    950: '#000000',
  },
}
SCSS
$custom: #aa31af;
$custom-light: #c775c7;
$custom-dark: #000000;
JSON
{
  "hex": "#aa31af",
  "rgb": {
    "r": 170,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 297.619,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54482,
    "c": 0.21008,
    "h": 326.3
  },
  "luminance": 0.13838
}

Semantic roles & 50–950 ramp

primary
#AA31AF
secondary
#7BC478
accent
#E0484E
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130913
muted
#827B82

Preview Lab

Preview with #AA31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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