#AA40A8#AA40A8

#AA40A8 is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.6% C 0.186 H 328.5°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#AA40A8
RGBrgb(170, 64, 168)
HSLhsl(301, 45%, 46%)
HSVhsv(301, 62%, 67%)
CMYKcmyk(0%, 62.4%, 1.2%, 33.3%)
CIE-LABlab(45.69, 56.48, -35.18)
CIE-LCHlch(45.69, 66.54, 328.08°)
OKLaboklab(55.58% 0.1582 -0.097)
OKLCHoklch(55.58% 0.186 328.5)
XYZxyz(25.4785, 15.0417, 38.5996)
Luminance0.1504 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40A8 #40AA42
analogous
#7740AA #AA40A8 #AA4073
triadic
#AA40A8 #A8AA40 #40A8AA
tetradic
#AA40A8 #AA7740 #40AA42 #4073AA
square
#AA40A8 #AA7740 #40AA42 #4073AA
split-complementary
#AA40A8 #73AA40 #40AA77
monochromatic
#511F50 #7E2F7C #AA40A8 #C463C2 #D58FD4

Accessibility & contrast

On white

5.24
#AA40A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#AA40A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40A8
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40A8#FFFFFF#000000##FFFFFF
##AA40A81.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3463AB
Deuteranopia (green-blind)
#5A71A5
Tritanopia (blue-blind)
#AF4D6E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #aa40a8;
/* rgb */ color: rgb(170, 64, 168);
/* oklch */ color: oklch(55.6% 0.186 328.5);
Tailwind
colors: {
  custom: {
    50: '#c67cc2',
    500: '#aa40a8',
    950: '#000000',
  },
}
SCSS
$custom: #aa40a8;
$custom-light: #c67cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40a8",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 301.132,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55579,
    "c": 0.18553,
    "h": 328.5
  },
  "luminance": 0.1504
}

Semantic roles & 50–950 ramp

primary
#AA40A8
secondary
#86C087
accent
#D55553
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A12
muted
#827C81

Preview Lab

Preview with #AA40A8

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

Preview Lab → · Contrast checker → · Palette generator →

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