#AA40B8#AA40B8

#AA40B8 is a mid, vivid purple. Relative luminance 0.157; OKLCH L 56.5% C 0.199 H 322.8°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#AA40B8
RGBrgb(170, 64, 184)
HSLhsl(293, 48%, 49%)
HSVhsv(293, 65%, 72%)
CMYKcmyk(7.6%, 65.2%, 0%, 27.8%)
CIE-LABlab(46.55, 59.34, -43.25)
CIE-LCHlch(46.55, 73.43, 323.92°)
OKLaboklab(56.47% 0.1589 -0.1204)
OKLCHoklch(56.47% 0.199 322.8)
XYZxyz(27.0618, 15.6750, 46.9383)
Luminance0.1567 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40B8 #4EB840
analogous
#6E40B8 #AA40B8 #B8408A
triadic
#AA40B8 #B8AA40 #40B8AA
tetradic
#AA40B8 #B86E40 #4EB840 #408AB8
square
#AA40B8 #B86E40 #4EB840 #408AB8
split-complementary
#AA40B8 #8AB840 #40B86E
monochromatic
#56205D #80308B #AA40B8 #C06ACB #D397DB

Accessibility & contrast

On white

5.08
#AA40B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#AA40B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40B8
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40B8#FFFFFF#000000##FFFFFF
##AA40B81.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2366BC
Deuteranopia (green-blind)
#5172B5
Tritanopia (blue-blind)
#AC5377
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #aa40b8;
/* rgb */ color: rgb(170, 64, 184);
/* oklch */ color: oklch(56.5% 0.199 322.8);
Tailwind
colors: {
  custom: {
    50: '#c67dce',
    500: '#aa40b8',
    950: '#000000',
  },
}
SCSS
$custom: #aa40b8;
$custom-light: #c67dce;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40b8",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 293,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.56473,
    "c": 0.19933,
    "h": 322.8
  },
  "luminance": 0.15674
}

Semantic roles & 50–950 ramp

primary
#AA40B8
secondary
#94C78D
accent
#D85060
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A13
muted
#827C82

Preview Lab

Preview with #AA40B8

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

Preview Lab → · Contrast checker → · Palette generator →

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