#AA40B7#AA40B7

#AA40B7 is a mid, vivid purple. Relative luminance 0.156; OKLCH L 56.4% C 0.198 H 323.2°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#AA40B7
RGBrgb(170, 64, 183)
HSLhsl(293, 48%, 48%)
HSVhsv(293, 65%, 72%)
CMYKcmyk(7.1%, 65%, 0%, 28.2%)
CIE-LABlab(46.49, 59.16, -42.75)
CIE-LCHlch(46.49, 72.99, 324.15°)
OKLaboklab(56.42% 0.1589 -0.1189)
OKLCHoklch(56.42% 0.198 323.2)
XYZxyz(26.9574, 15.6332, 46.3882)
Luminance0.1563 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40B7 #4DB740
analogous
#6E40B7 #AA40B7 #B74088
triadic
#AA40B7 #B7AA40 #40B7AA
tetradic
#AA40B7 #B76E40 #4DB740 #4088B7
square
#AA40B7 #B76E40 #4DB740 #4088B7
split-complementary
#AA40B7 #88B740 #40B76E
monochromatic
#56205C #80308A #AA40B7 #C069CB #D397DB

Accessibility & contrast

On white

5.09
#AA40B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#AA40B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40B7
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40B7#FFFFFF#000000##FFFFFF
##AA40B71.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2566BB
Deuteranopia (green-blind)
#5272B4
Tritanopia (blue-blind)
#AD5376
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #aa40b7;
/* rgb */ color: rgb(170, 64, 183);
/* oklch */ color: oklch(56.4% 0.198 323.2);
Tailwind
colors: {
  custom: {
    50: '#c67dcd',
    500: '#aa40b7',
    950: '#000000',
  },
}
SCSS
$custom: #aa40b7;
$custom-light: #c67dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40b7",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 293.445,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.56415,
    "c": 0.19845,
    "h": 323.2
  },
  "luminance": 0.15632
}

Semantic roles & 50–950 ramp

primary
#AA40B7
secondary
#93C68D
accent
#D8505F
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A13
muted
#827C82

Preview Lab

Preview with #AA40B7

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

Preview Lab → · Contrast checker → · Palette generator →

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