#AA40BF#AA40BF

#AA40BF is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 56.9% C 0.206 H 320.6°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#AA40BF
RGBrgb(170, 64, 191)
HSLhsl(290, 50%, 50%)
HSVhsv(290, 66%, 75%)
CMYKcmyk(11%, 66.5%, 0%, 25.1%)
CIE-LABlab(46.94, 60.65, -46.70)
CIE-LCHlch(46.94, 76.54, 322.40°)
OKLaboklab(56.89% 0.1588 -0.1304)
OKLCHoklch(56.89% 0.206 320.6)
XYZxyz(27.8138, 15.9758, 50.8987)
Luminance0.1597 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40BF #55BF40
analogous
#6B40BF #AA40BF #BF4094
triadic
#AA40BF #BFAA40 #40BFAA
tetradic
#AA40BF #BF6B40 #55BF40 #4094BF
square
#AA40BF #BF6B40 #55BF40 #4094BF
split-complementary
#AA40BF #94BF40 #40BF6B
monochromatic
#582163 #813191 #AA40BF #BE6ECE #D39CDE

Accessibility & contrast

On white

5.01
#AA40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#AA40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40BF
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40BF#FFFFFF#000000##FFFFFF
##AA40BF1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1768C3
Deuteranopia (green-blind)
#4C73BC
Tritanopia (blue-blind)
#AB567A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #aa40bf;
/* rgb */ color: rgb(170, 64, 191);
/* oklch */ color: oklch(56.9% 0.206 320.6);
Tailwind
colors: {
  custom: {
    50: '#c77dd3',
    500: '#aa40bf',
    950: '#000000',
  },
}
SCSS
$custom: #aa40bf;
$custom-light: #c77dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40bf",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 290.079,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.56888,
    "c": 0.20554,
    "h": 320.6
  },
  "luminance": 0.15974
}

Semantic roles & 50–950 ramp

primary
#AA40BF
secondary
#9ACA91
accent
#D94E65
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #AA40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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