#AA40B9#AA40B9

#AA40B9 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.5% C 0.200 H 322.5°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#AA40B9
RGBrgb(170, 64, 185)
HSLhsl(293, 49%, 49%)
HSVhsv(293, 65%, 73%)
CMYKcmyk(8.1%, 65.4%, 0%, 27.5%)
CIE-LABlab(46.60, 59.53, -43.74)
CIE-LCHlch(46.60, 73.87, 323.69°)
OKLaboklab(56.53% 0.1589 -0.1218)
OKLCHoklch(56.53% 0.2 322.5)
XYZxyz(27.1670, 15.7171, 47.4923)
Luminance0.1572 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40B9 #4FB940
analogous
#6E40B9 #AA40B9 #B9408C
triadic
#AA40B9 #B9AA40 #40B9AA
tetradic
#AA40B9 #B96E40 #4FB940 #408CB9
square
#AA40B9 #B96E40 #4FB940 #408CB9
split-complementary
#AA40B9 #8CB940 #40B96E
monochromatic
#56215E #80308C #AA40B9 #C06BCC #D398DB

Accessibility & contrast

On white

5.07
#AA40B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#AA40B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40B9
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40B9#FFFFFF#000000##FFFFFF
##AA40B91.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2267BD
Deuteranopia (green-blind)
#5073B6
Tritanopia (blue-blind)
#AC5477
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #aa40b9;
/* rgb */ color: rgb(170, 64, 185);
/* oklch */ color: oklch(56.5% 0.200 322.5);
Tailwind
colors: {
  custom: {
    50: '#c77dce',
    500: '#aa40b9',
    950: '#000000',
  },
}
SCSS
$custom: #aa40b9;
$custom-light: #c77dce;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40b9",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 292.562,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56532,
    "c": 0.20021,
    "h": 322.5
  },
  "luminance": 0.15716
}

Semantic roles & 50–950 ramp

primary
#AA40B9
secondary
#95C78E
accent
#D85061
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #AA40B9

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

Preview Lab → · Contrast checker → · Palette generator →

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