#AA40BB#AA40BB

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

Color values

HEX#AA40BB
RGBrgb(170, 64, 187)
HSLhsl(292, 49%, 49%)
HSVhsv(292, 66%, 73%)
CMYKcmyk(9.1%, 65.8%, 0%, 26.7%)
CIE-LABlab(46.71, 59.90, -44.73)
CIE-LCHlch(46.71, 74.76, 323.25°)
OKLaboklab(56.65% 0.1589 -0.1247)
OKLCHoklch(56.65% 0.202 321.9)
XYZxyz(27.3796, 15.8021, 48.6120)
Luminance0.1580 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40BB #51BB40
analogous
#6D40BB #AA40BB #BB408F
triadic
#AA40BB #BBAA40 #40BBAA
tetradic
#AA40BB #BB6D40 #51BB40 #408FBB
square
#AA40BB #BB6D40 #51BB40 #408FBB
split-complementary
#AA40BB #8FBB40 #40BB6D
monochromatic
#572160 #81308D #AA40BB #BF6CCD #D399DC

Accessibility & contrast

On white

5.05
#AA40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#AA40BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40BB
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40BB#FFFFFF#000000##FFFFFF
##AA40BB1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F67BF
Deuteranopia (green-blind)
#4F73B8
Tritanopia (blue-blind)
#AC5478
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #aa40bb;
/* rgb */ color: rgb(170, 64, 187);
/* oklch */ color: oklch(56.6% 0.202 321.9);
Tailwind
colors: {
  custom: {
    50: '#c77dd0',
    500: '#aa40bb',
    950: '#000000',
  },
}
SCSS
$custom: #aa40bb;
$custom-light: #c77dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40bb",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 291.707,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56649,
    "c": 0.20198,
    "h": 321.9
  },
  "luminance": 0.15801
}

Semantic roles & 50–950 ramp

primary
#AA40BB
secondary
#97C88F
accent
#D94F62
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #AA40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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