#AA40C1#AA40C1

#AA40C1 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.0% C 0.207 H 320.0°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#AA40C1
RGBrgb(170, 64, 193)
HSLhsl(289, 51%, 50%)
HSVhsv(289, 67%, 76%)
CMYKcmyk(11.9%, 66.8%, 0%, 24.3%)
CIE-LABlab(47.06, 61.03, -47.67)
CIE-LCHlch(47.06, 77.44, 322.00°)
OKLaboklab(57.01% 0.1588 -0.1333)
OKLCHoklch(57.01% 0.207 320)
XYZxyz(28.0354, 16.0644, 52.0657)
Luminance0.1606 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40C1 #57C140
analogous
#6940C1 #AA40C1 #C14098
triadic
#AA40C1 #C1AA40 #40C1AA
tetradic
#AA40C1 #C16940 #57C140 #4098C1
square
#AA40C1 #C16940 #57C140 #4098C1
split-complementary
#AA40C1 #98C140 #40C169
monochromatic
#592166 #823094 #AA40C1 #BF6ED0 #D39CDF

Accessibility & contrast

On white

4.99
#AA40C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#AA40C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40C1
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40C1#FFFFFF#000000##FFFFFF
##AA40C11.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1268C5
Deuteranopia (green-blind)
#4B73BE
Tritanopia (blue-blind)
#AB577B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #aa40c1;
/* rgb */ color: rgb(170, 64, 193);
/* oklch */ color: oklch(57.0% 0.207 320.0);
Tailwind
colors: {
  custom: {
    50: '#c77dd4',
    500: '#aa40c1',
    950: '#000000',
  },
}
SCSS
$custom: #aa40c1;
$custom-light: #c77dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40c1",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 289.302,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57009,
    "c": 0.20733,
    "h": 320
  },
  "luminance": 0.16063
}

Semantic roles & 50–950 ramp

primary
#AA40C1
secondary
#9CCB92
accent
#DA4D66
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130A14
muted
#827C83

Preview Lab

Preview with #AA40C1

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

Preview Lab → · Contrast checker → · Palette generator →

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