#AA40CC#AA40CC

#AA40CC is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.7% C 0.217 H 316.8°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AA40CC
RGBrgb(170, 64, 204)
HSLhsl(285, 58%, 53%)
HSVhsv(285, 69%, 80%)
CMYKcmyk(16.7%, 68.6%, 0%, 20%)
CIE-LABlab(47.72, 63.15, -52.98)
CIE-LCHlch(47.72, 82.43, 320.00°)
OKLaboklab(57.69% 0.1583 -0.1488)
OKLCHoklch(57.69% 0.217 316.8)
XYZxyz(29.3084, 16.5736, 58.7702)
Luminance0.1657 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40CC #62CC40
analogous
#6440CC #AA40CC #CC40A8
triadic
#AA40CC #CCAA40 #40CCAA
tetradic
#AA40CC #CC6440 #62CC40 #40A8CC
square
#AA40CC #CC6440 #62CC40 #40A8CC
split-complementary
#AA40CC #A8CC40 #40CC64
monochromatic
#5E1F73 #862CA3 #AA40CC #BF70D9 #D5A1E6

Accessibility & contrast

On white

4.87
#AA40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#AA40CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40CC
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40CC#FFFFFF#000000##FFFFFF
##AA40CC1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#4274C9
Tritanopia (blue-blind)
#A85B81
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #aa40cc;
/* rgb */ color: rgb(170, 64, 204);
/* oklch */ color: oklch(57.7% 0.217 316.8);
Tailwind
colors: {
  custom: {
    50: '#c77ddc',
    500: '#aa40cc',
    950: '#000000',
  },
}
SCSS
$custom: #aa40cc;
$custom-light: #c77ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40cc",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 285.429,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.57694,
    "c": 0.21728,
    "h": 316.8
  },
  "luminance": 0.16572
}

Semantic roles & 50–950 ramp

primary
#AA40CC
secondary
#A4D295
accent
#E1476C
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #AA40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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