#AA40BA#AA40BA

#AA40BA is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.6% C 0.201 H 322.2°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AA40BA
RGBrgb(170, 64, 186)
HSLhsl(292, 49%, 49%)
HSVhsv(292, 66%, 73%)
CMYKcmyk(8.6%, 65.6%, 0%, 27.1%)
CIE-LABlab(46.66, 59.71, -44.24)
CIE-LCHlch(46.66, 74.31, 323.47°)
OKLaboklab(56.59% 0.1589 -0.1233)
OKLCHoklch(56.59% 0.201 322.2)
XYZxyz(27.2730, 15.7595, 48.0502)
Luminance0.1576 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40BA #50BA40
analogous
#6D40BA #AA40BA #BA408D
triadic
#AA40BA #BAAA40 #40BAAA
tetradic
#AA40BA #BA6D40 #50BA40 #408DBA
square
#AA40BA #BA6D40 #50BA40 #408DBA
split-complementary
#AA40BA #8DBA40 #40BA6D
monochromatic
#57215F #80308C #AA40BA #BF6BCC #D399DC

Accessibility & contrast

On white

5.06
#AA40BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#AA40BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40BA
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40BA#FFFFFF#000000##FFFFFF
##AA40BA1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2067BE
Deuteranopia (green-blind)
#5073B7
Tritanopia (blue-blind)
#AC5478
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #aa40ba;
/* rgb */ color: rgb(170, 64, 186);
/* oklch */ color: oklch(56.6% 0.201 322.2);
Tailwind
colors: {
  custom: {
    50: '#c77dcf',
    500: '#aa40ba',
    950: '#000000',
  },
}
SCSS
$custom: #aa40ba;
$custom-light: #c77dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40ba",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 292.131,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56591,
    "c": 0.2011,
    "h": 322.2
  },
  "luminance": 0.15758
}

Semantic roles & 50–950 ramp

primary
#AA40BA
secondary
#96C88E
accent
#D84F61
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #AA40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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