#AA40BC#AA40BC

#AA40BC is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.7% C 0.203 H 321.6°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AA40BC
RGBrgb(170, 64, 188)
HSLhsl(291, 49%, 49%)
HSVhsv(291, 66%, 74%)
CMYKcmyk(9.6%, 66%, 0%, 26.3%)
CIE-LABlab(46.77, 60.09, -45.22)
CIE-LCHlch(46.77, 75.20, 323.03°)
OKLaboklab(56.71% 0.1589 -0.1262)
OKLCHoklch(56.71% 0.203 321.6)
XYZxyz(27.4871, 15.8451, 49.1778)
Luminance0.1584 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40BC #52BC40
analogous
#6C40BC #AA40BC #BC4090
triadic
#AA40BC #BCAA40 #40BCAA
tetradic
#AA40BC #BC6C40 #52BC40 #4090BC
square
#AA40BC #BC6C40 #52BC40 #4090BC
split-complementary
#AA40BC #90BC40 #40BC6C
monochromatic
#572161 #81308E #AA40BC #BF6CCD #D39ADD

Accessibility & contrast

On white

5.04
#AA40BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#AA40BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40BC
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40BC#FFFFFF#000000##FFFFFF
##AA40BC1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D67C0
Deuteranopia (green-blind)
#4E73B9
Tritanopia (blue-blind)
#AC5579
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #aa40bc;
/* rgb */ color: rgb(170, 64, 188);
/* oklch */ color: oklch(56.7% 0.203 321.6);
Tailwind
colors: {
  custom: {
    50: '#c77dd1',
    500: '#aa40bc',
    950: '#000000',
  },
}
SCSS
$custom: #aa40bc;
$custom-light: #c77dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40bc",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 291.29,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.56709,
    "c": 0.20287,
    "h": 321.6
  },
  "luminance": 0.15844
}

Semantic roles & 50–950 ramp

primary
#AA40BC
secondary
#98C98F
accent
#D94F63
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #AA40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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