#AA40B0#AA40B0

#AA40B0 is a mid, vivid purple. Relative luminance 0.153; OKLCH L 56.0% C 0.192 H 325.6°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#AA40B0
RGBrgb(170, 64, 176)
HSLhsl(297, 47%, 47%)
HSVhsv(297, 64%, 69%)
CMYKcmyk(3.4%, 63.6%, 0%, 31%)
CIE-LABlab(46.11, 57.89, -39.25)
CIE-LCHlch(46.11, 69.94, 325.86°)
OKLaboklab(56.02% 0.1586 -0.1088)
OKLCHoklch(56.02% 0.192 325.6)
XYZxyz(26.2469, 15.3490, 42.6461)
Luminance0.1535 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40B0 #46B040
analogous
#7240B0 #AA40B0 #B0407E
triadic
#AA40B0 #B0AA40 #40B0AA
tetradic
#AA40B0 #B07240 #46B040 #407EB0
square
#AA40B0 #B07240 #46B040 #407EB0
split-complementary
#AA40B0 #7EB040 #40B072
monochromatic
#531F56 #7F3083 #AA40B0 #C266C7 #D493D8

Accessibility & contrast

On white

5.16
#AA40B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#AA40B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40B0
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40B0#FFFFFF#000000##FFFFFF
##AA40B01.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D65B3
Deuteranopia (green-blind)
#5672AD
Tritanopia (blue-blind)
#AE5072
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #aa40b0;
/* rgb */ color: rgb(170, 64, 176);
/* oklch */ color: oklch(56.0% 0.192 325.6);
Tailwind
colors: {
  custom: {
    50: '#c67cc8',
    500: '#aa40b0',
    950: '#000000',
  },
}
SCSS
$custom: #aa40b0;
$custom-light: #c67cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40b0",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 296.786,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56017,
    "c": 0.19234,
    "h": 325.6
  },
  "luminance": 0.15347
}

Semantic roles & 50–950 ramp

primary
#AA40B0
secondary
#8CC389
accent
#D65159
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AA40B0

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

Preview Lab → · Contrast checker → · Palette generator →

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