#AA40AA#AA40AA

#AA40AA is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.7% C 0.187 H 327.7°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#AA40AA
RGBrgb(170, 64, 170)
HSLhsl(300, 45%, 46%)
HSVhsv(300, 62%, 67%)
CMYKcmyk(0%, 62.4%, 0%, 33.3%)
CIE-LABlab(45.79, 56.83, -36.21)
CIE-LCHlch(45.79, 67.38, 327.50°)
OKLaboklab(55.69% 0.1583 -0.0999)
OKLCHoklch(55.69% 0.187 327.7)
XYZxyz(25.6663, 15.1168, 39.5884)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40AA #40AA40
analogous
#7540AA #AA40AA #AA4075
triadic
#AA40AA #AAAA40 #40AAAA
tetradic
#AA40AA #AA7540 #40AA40 #4075AA
square
#AA40AA #AA7540 #40AA40 #4075AA
split-complementary
#AA40AA #75AA40 #40AA75
monochromatic
#511F51 #7E2F7E #AA40AA #C463C4 #D58FD5

Accessibility & contrast

On white

5.22
#AA40AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#AA40AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40AA
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40AA#FFFFFF#000000##FFFFFF
##AA40AA1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3364AD
Deuteranopia (green-blind)
#5971A7
Tritanopia (blue-blind)
#AF4E6F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #aa40aa;
/* rgb */ color: rgb(170, 64, 170);
/* oklch */ color: oklch(55.7% 0.187 327.7);
Tailwind
colors: {
  custom: {
    50: '#c67cc4',
    500: '#aa40aa',
    950: '#000000',
  },
}
SCSS
$custom: #aa40aa;
$custom-light: #c67cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40aa",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 300,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55686,
    "c": 0.18721,
    "h": 327.7
  },
  "luminance": 0.15115
}

Semantic roles & 50–950 ramp

primary
#AA40AA
secondary
#86C086
accent
#D55353
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A12
muted
#827C81

Preview Lab

Preview with #AA40AA

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

Preview Lab → · Contrast checker → · Palette generator →

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