#AA40C5#AA40C5

#AA40C5 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.3% C 0.211 H 318.8°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AA40C5
RGBrgb(170, 64, 197)
HSLhsl(288, 53%, 51%)
HSVhsv(288, 68%, 77%)
CMYKcmyk(13.7%, 67.5%, 0%, 22.7%)
CIE-LABlab(47.29, 61.79, -49.62)
CIE-LCHlch(47.29, 79.25, 321.24°)
OKLaboklab(57.25% 0.1587 -0.139)
OKLCHoklch(57.25% 0.211 318.8)
XYZxyz(28.4877, 16.2453, 54.4476)
Luminance0.1624 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40C5 #5BC540
analogous
#6740C5 #AA40C5 #C5409D
triadic
#AA40C5 #C5AA40 #40C5AA
tetradic
#AA40C5 #C56740 #5BC540 #409DC5
square
#AA40C5 #C56740 #5BC540 #409DC5
split-complementary
#AA40C5 #9DC540 #40C567
monochromatic
#5B206A #842F99 #AA40C5 #BF6FD3 #D49EE2

Accessibility & contrast

On white

4.94
#AA40C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#AA40C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40C5
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40C5#FFFFFF#000000##FFFFFF
##AA40C51.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0369C9
Deuteranopia (green-blind)
#4874C2
Tritanopia (blue-blind)
#AA587E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #aa40c5;
/* rgb */ color: rgb(170, 64, 197);
/* oklch */ color: oklch(57.3% 0.211 318.8);
Tailwind
colors: {
  custom: {
    50: '#c77dd7',
    500: '#aa40c5',
    950: '#000000',
  },
}
SCSS
$custom: #aa40c5;
$custom-light: #c77dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40c5",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 287.82,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.57254,
    "c": 0.21093,
    "h": 318.8
  },
  "luminance": 0.16244
}

Semantic roles & 50–950 ramp

primary
#AA40C5
secondary
#9FCE93
accent
#DD4B69
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130A14
muted
#827C83

Preview Lab

Preview with #AA40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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