#AA40BD#AA40BD

#AA40BD is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.8% C 0.204 H 321.2°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AA40BD
RGBrgb(170, 64, 189)
HSLhsl(291, 49%, 50%)
HSVhsv(291, 66%, 74%)
CMYKcmyk(10.1%, 66.1%, 0%, 25.9%)
CIE-LABlab(46.83, 60.27, -45.72)
CIE-LCHlch(46.83, 75.65, 322.82°)
OKLaboklab(56.77% 0.1589 -0.1276)
OKLCHoklch(56.77% 0.204 321.2)
XYZxyz(27.5952, 15.8884, 49.7475)
Luminance0.1589 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40BD #53BD40
analogous
#6C40BD #AA40BD #BD4092
triadic
#AA40BD #BDAA40 #40BDAA
tetradic
#AA40BD #BD6C40 #53BD40 #4092BD
square
#AA40BD #BD6C40 #53BD40 #4092BD
split-complementary
#AA40BD #92BD40 #40BD6C
monochromatic
#582162 #81318F #AA40BD #BF6DCD #D39ADD

Accessibility & contrast

On white

5.03
#AA40BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#AA40BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40BD
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40BD#FFFFFF#000000##FFFFFF
##AA40BD1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B67C1
Deuteranopia (green-blind)
#4E73BA
Tritanopia (blue-blind)
#AB5579
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #aa40bd;
/* rgb */ color: rgb(170, 64, 189);
/* oklch */ color: oklch(56.8% 0.204 321.2);
Tailwind
colors: {
  custom: {
    50: '#c77dd1',
    500: '#aa40bd',
    950: '#000000',
  },
}
SCSS
$custom: #aa40bd;
$custom-light: #c77dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40bd",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 290.88,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.56768,
    "c": 0.20376,
    "h": 321.2
  },
  "luminance": 0.15887
}

Semantic roles & 50–950 ramp

primary
#AA40BD
secondary
#99C990
accent
#D94F64
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #AA40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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