#AA40C9#AA40C9

#AA40C9 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.5% C 0.215 H 317.6°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AA40C9
RGBrgb(170, 64, 201)
HSLhsl(286, 56%, 52%)
HSVhsv(286, 68%, 79%)
CMYKcmyk(15.4%, 68.2%, 0%, 21.2%)
CIE-LABlab(47.54, 62.56, -51.55)
CIE-LCHlch(47.54, 81.06, 320.52°)
OKLaboklab(57.5% 0.1585 -0.1446)
OKLCHoklch(57.5% 0.215 317.6)
XYZxyz(28.9521, 16.4311, 56.8935)
Luminance0.1643 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40C9 #5FC940
analogous
#6640C9 #AA40C9 #C940A4
triadic
#AA40C9 #C9AA40 #40C9AA
tetradic
#AA40C9 #C96640 #5FC940 #40A4C9
square
#AA40C9 #C96640 #5FC940 #40A4C9
split-complementary
#AA40C9 #A4C940 #40C966
monochromatic
#5D1F6F #852D9F #AA40C9 #BF70D6 #D49FE4

Accessibility & contrast

On white

4.90
#AA40C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#AA40C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40C9
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40C9#FFFFFF#000000##FFFFFF
##AA40C91.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACD
Deuteranopia (green-blind)
#4474C6
Tritanopia (blue-blind)
#A95A80
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #aa40c9;
/* rgb */ color: rgb(170, 64, 201);
/* oklch */ color: oklch(57.5% 0.215 317.6);
Tailwind
colors: {
  custom: {
    50: '#c77dda',
    500: '#aa40c9',
    950: '#000000',
  },
}
SCSS
$custom: #aa40c9;
$custom-light: #c77dda;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40c9",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 286.423,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.57504,
    "c": 0.21455,
    "h": 317.6
  },
  "luminance": 0.1643
}

Semantic roles & 50–950 ramp

primary
#AA40C9
secondary
#A2D094
accent
#DF496B
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #AA40C9

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

Preview Lab → · Contrast checker → · Palette generator →

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