#AA40B2#AA40B2

#AA40B2 is a mid, vivid purple. Relative luminance 0.154; OKLCH L 56.1% C 0.194 H 324.9°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#AA40B2
RGBrgb(170, 64, 178)
HSLhsl(296, 47%, 47%)
HSVhsv(296, 64%, 70%)
CMYKcmyk(4.5%, 64%, 0%, 30.2%)
CIE-LABlab(46.22, 58.25, -40.25)
CIE-LCHlch(46.22, 70.80, 325.35°)
OKLaboklab(56.13% 0.1587 -0.1117)
OKLCHoklch(56.13% 0.194 324.9)
XYZxyz(26.4462, 15.4288, 43.6959)
Luminance0.1543 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40B2 #48B240
analogous
#7140B2 #AA40B2 #B24081
triadic
#AA40B2 #B2AA40 #40B2AA
tetradic
#AA40B2 #B27140 #48B240 #4081B2
square
#AA40B2 #B27140 #48B240 #4081B2
split-complementary
#AA40B2 #81B240 #40B271
monochromatic
#542058 #7F3085 #AA40B2 #C167C8 #D494D8

Accessibility & contrast

On white

5.14
#AA40B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AA40B2
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40B2#FFFFFF#000000##FFFFFF
##AA40B21.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B65B5
Deuteranopia (green-blind)
#5572AF
Tritanopia (blue-blind)
#AE5173
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #aa40b2;
/* rgb */ color: rgb(170, 64, 178);
/* oklch */ color: oklch(56.1% 0.194 324.9);
Tailwind
colors: {
  custom: {
    50: '#c67cc9',
    500: '#aa40b2',
    950: '#000000',
  },
}
SCSS
$custom: #aa40b2;
$custom-light: #c67cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40b2",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 295.789,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56129,
    "c": 0.19407,
    "h": 324.9
  },
  "luminance": 0.15427
}

Semantic roles & 50–950 ramp

primary
#AA40B2
secondary
#8EC48A
accent
#D7515A
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AA40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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