#AA40B4#AA40B4

#AA40B4 is a mid, vivid purple. Relative luminance 0.155; OKLCH L 56.2% C 0.196 H 324.2°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#AA40B4
RGBrgb(170, 64, 180)
HSLhsl(295, 48%, 48%)
HSVhsv(295, 64%, 71%)
CMYKcmyk(5.6%, 64.4%, 0%, 29.4%)
CIE-LABlab(46.32, 58.61, -41.26)
CIE-LCHlch(46.32, 71.67, 324.86°)
OKLaboklab(56.24% 0.1588 -0.1146)
OKLCHoklch(56.24% 0.196 324.2)
XYZxyz(26.6485, 15.5097, 44.7612)
Luminance0.1551 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40B4 #4AB440
analogous
#7040B4 #AA40B4 #B44084
triadic
#AA40B4 #B4AA40 #40B4AA
tetradic
#AA40B4 #B47040 #4AB440 #4084B4
square
#AA40B4 #B47040 #4AB440 #4084B4
split-complementary
#AA40B4 #84B440 #40B470
monochromatic
#55205A #7F3087 #AA40B4 #C168C9 #D395D9

Accessibility & contrast

On white

5.12
#AA40B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#AA40B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40B4
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40B4#FFFFFF#000000##FFFFFF
##AA40B41.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2866B7
Deuteranopia (green-blind)
#5472B1
Tritanopia (blue-blind)
#AD5274
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #aa40b4;
/* rgb */ color: rgb(170, 64, 180);
/* oklch */ color: oklch(56.2% 0.196 324.2);
Tailwind
colors: {
  custom: {
    50: '#c67ccb',
    500: '#aa40b4',
    950: '#000000',
  },
}
SCSS
$custom: #aa40b4;
$custom-light: #c67ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40b4",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 294.828,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56243,
    "c": 0.19582,
    "h": 324.2
  },
  "luminance": 0.15508
}

Semantic roles & 50–950 ramp

primary
#AA40B4
secondary
#90C58B
accent
#D7515C
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AA40B4

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

Preview Lab → · Contrast checker → · Palette generator →

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