#AA40A0#AA40A0

#AA40A0 is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.2% C 0.179 H 331.6°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#AA40A0
RGBrgb(170, 64, 160)
HSLhsl(306, 45%, 46%)
HSVhsv(306, 62%, 67%)
CMYKcmyk(0%, 62.4%, 5.9%, 33.3%)
CIE-LABlab(45.29, 55.12, -31.06)
CIE-LCHlch(45.29, 63.26, 330.60°)
OKLaboklab(55.16% 0.1574 -0.0851)
OKLCHoklch(55.16% 0.179 331.6)
XYZxyz(24.7561, 14.7527, 34.7946)
Luminance0.1475 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40A0 #40AA4A
analogous
#7F40AA #AA40A0 #AA406B
triadic
#AA40A0 #A0AA40 #40A0AA
tetradic
#AA40A0 #AA7F40 #40AA4A #406BAA
square
#AA40A0 #AA7F40 #40AA4A #406BAA
split-complementary
#AA40A0 #6BAA40 #40AA7F
monochromatic
#511F4C #7E2F76 #AA40A0 #C463BB #D58FCE

Accessibility & contrast

On white

5.32
#AA40A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#AA40A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40A0
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40A0#FFFFFF#000000##FFFFFF
##AA40A01.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B62A3
Deuteranopia (green-blind)
#5E719D
Tritanopia (blue-blind)
#B14A6A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #aa40a0;
/* rgb */ color: rgb(170, 64, 160);
/* oklch */ color: oklch(55.2% 0.179 331.6);
Tailwind
colors: {
  custom: {
    50: '#c67cbc',
    500: '#aa40a0',
    950: '#000000',
  },
}
SCSS
$custom: #aa40a0;
$custom-light: #c67cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40a0",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 160
  },
  "hsl": {
    "h": 305.66,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.5516,
    "c": 0.17892,
    "h": 331.6
  },
  "luminance": 0.14751
}

Semantic roles & 50–950 ramp

primary
#AA40A0
secondary
#86C08B
accent
#D55F53
background
#FCF7FB
surface
#F8EEF6
border
#D1C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #AA40A0

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

Preview Lab → · Contrast checker → · Palette generator →

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