#AA40C7#AA40C7

#AA40C7 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.4% C 0.213 H 318.2°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AA40C7
RGBrgb(170, 64, 199)
HSLhsl(287, 55%, 52%)
HSVhsv(287, 68%, 78%)
CMYKcmyk(14.6%, 67.8%, 0%, 22%)
CIE-LABlab(47.41, 62.18, -50.58)
CIE-LCHlch(47.41, 80.15, 320.87°)
OKLaboklab(57.38% 0.1586 -0.1418)
OKLCHoklch(57.38% 0.213 318.2)
XYZxyz(28.7183, 16.3376, 55.6625)
Luminance0.1634 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40C7 #5DC740
analogous
#6740C7 #AA40C7 #C740A1
triadic
#AA40C7 #C7AA40 #40C7AA
tetradic
#AA40C7 #C76740 #5DC740 #40A1C7
square
#AA40C7 #C76740 #5DC740 #40A1C7
split-complementary
#AA40C7 #A1C740 #40C767
monochromatic
#5C206D #842E9C #AA40C7 #BF6FD5 #D49FE3

Accessibility & contrast

On white

4.92
#AA40C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#AA40C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40C7
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40C7#FFFFFF#000000##FFFFFF
##AA40C71.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACB
Deuteranopia (green-blind)
#4674C4
Tritanopia (blue-blind)
#A9597F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #aa40c7;
/* rgb */ color: rgb(170, 64, 199);
/* oklch */ color: oklch(57.4% 0.213 318.2);
Tailwind
colors: {
  custom: {
    50: '#c77dd9',
    500: '#aa40c7',
    950: '#000000',
  },
}
SCSS
$custom: #aa40c7;
$custom-light: #c77dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40c7",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 287.111,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.57378,
    "c": 0.21274,
    "h": 318.2
  },
  "luminance": 0.16336
}

Semantic roles & 50–950 ramp

primary
#AA40C7
secondary
#A0CF94
accent
#DE4A6A
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130A15
muted
#827C83

Preview Lab

Preview with #AA40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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