#AA40B3#AA40B3

#AA40B3 is a mid, vivid purple. Relative luminance 0.155; OKLCH L 56.2% C 0.195 H 324.5°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#AA40B3
RGBrgb(170, 64, 179)
HSLhsl(295, 47%, 48%)
HSVhsv(295, 64%, 70%)
CMYKcmyk(5%, 64.2%, 0%, 29.8%)
CIE-LABlab(46.27, 58.43, -40.75)
CIE-LCHlch(46.27, 71.24, 325.10°)
OKLaboklab(56.19% 0.1588 -0.1131)
OKLCHoklch(56.19% 0.195 324.5)
XYZxyz(26.5470, 15.4691, 44.2266)
Luminance0.1547 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40B3 #49B340
analogous
#7040B3 #AA40B3 #B34083
triadic
#AA40B3 #B3AA40 #40B3AA
tetradic
#AA40B3 #B37040 #49B340 #4083B3
square
#AA40B3 #B37040 #49B340 #4083B3
split-complementary
#AA40B3 #83B340 #40B370
monochromatic
#542059 #7F3086 #AA40B3 #C167C9 #D494D9

Accessibility & contrast

On white

5.13
#AA40B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#AA40B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40B3
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40B3#FFFFFF#000000##FFFFFF
##AA40B31.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A65B6
Deuteranopia (green-blind)
#5472B0
Tritanopia (blue-blind)
#AD5174
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #aa40b3;
/* rgb */ color: rgb(170, 64, 179);
/* oklch */ color: oklch(56.2% 0.195 324.5);
Tailwind
colors: {
  custom: {
    50: '#c67cca',
    500: '#aa40b3',
    950: '#000000',
  },
}
SCSS
$custom: #aa40b3;
$custom-light: #c67cca;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40b3",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 295.304,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56186,
    "c": 0.19495,
    "h": 324.5
  },
  "luminance": 0.15468
}

Semantic roles & 50–950 ramp

primary
#AA40B3
secondary
#8FC48A
accent
#D7515B
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AA40B3

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

Preview Lab → · Contrast checker → · Palette generator →

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