#AA40A7#AA40A7

#AA40A7 is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.5% C 0.185 H 328.9°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#AA40A7
RGBrgb(170, 64, 167)
HSLhsl(302, 45%, 46%)
HSVhsv(302, 62%, 67%)
CMYKcmyk(0%, 62.4%, 1.8%, 33.3%)
CIE-LABlab(45.64, 56.31, -34.67)
CIE-LCHlch(45.64, 66.13, 328.38°)
OKLaboklab(55.53% 0.1581 -0.0955)
OKLCHoklch(55.53% 0.185 328.9)
XYZxyz(25.3857, 15.0046, 38.1108)
Luminance0.1500 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40A7 #40AA43
analogous
#7840AA #AA40A7 #AA4072
triadic
#AA40A7 #A7AA40 #40A7AA
tetradic
#AA40A7 #AA7840 #40AA43 #4072AA
square
#AA40A7 #AA7840 #40AA43 #4072AA
split-complementary
#AA40A7 #72AA40 #40AA78
monochromatic
#511F50 #7E2F7B #AA40A7 #C463C1 #D58FD3

Accessibility & contrast

On white

5.25
#AA40A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#AA40A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40A7
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40A7#FFFFFF#000000##FFFFFF
##AA40A71.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3563AA
Deuteranopia (green-blind)
#5B71A4
Tritanopia (blue-blind)
#B04D6E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #aa40a7;
/* rgb */ color: rgb(170, 64, 167);
/* oklch */ color: oklch(55.5% 0.185 328.9);
Tailwind
colors: {
  custom: {
    50: '#c67cc1',
    500: '#aa40a7',
    950: '#000000',
  },
}
SCSS
$custom: #aa40a7;
$custom-light: #c67cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40a7",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 301.698,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55525,
    "c": 0.18469,
    "h": 328.9
  },
  "luminance": 0.15003
}

Semantic roles & 50–950 ramp

primary
#AA40A7
secondary
#86C087
accent
#D55753
background
#FCF7FB
surface
#F8EEF7
border
#D1C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #AA40A7

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

Preview Lab → · Contrast checker → · Palette generator →

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