#AA40CA#AA40CA

#AA40CA is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.6% C 0.215 H 317.3°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#AA40CA
RGBrgb(170, 64, 202)
HSLhsl(286, 57%, 52%)
HSVhsv(286, 68%, 79%)
CMYKcmyk(15.8%, 68.3%, 0%, 20.8%)
CIE-LABlab(47.60, 62.76, -52.02)
CIE-LCHlch(47.60, 81.52, 320.34°)
OKLaboklab(57.57% 0.1584 -0.146)
OKLCHoklch(57.57% 0.215 317.3)
XYZxyz(29.0701, 16.4783, 57.5150)
Luminance0.1648 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40CA #60CA40
analogous
#6540CA #AA40CA #CA40A5
triadic
#AA40CA #CAAA40 #40CAAA
tetradic
#AA40CA #CA6540 #60CA40 #40A5CA
square
#AA40CA #CA6540 #60CA40 #40A5CA
split-complementary
#AA40CA #A5CA40 #40CA65
monochromatic
#5E1F70 #852CA0 #AA40CA #BF70D7 #D5A0E5

Accessibility & contrast

On white

4.89
#AA40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#AA40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40CA
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40CA#FFFFFF#000000##FFFFFF
##AA40CA1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #aa40ca;
/* rgb */ color: rgb(170, 64, 202);
/* oklch */ color: oklch(57.6% 0.215 317.3);
Tailwind
colors: {
  custom: {
    50: '#c77ddb',
    500: '#aa40ca',
    950: '#000000',
  },
}
SCSS
$custom: #aa40ca;
$custom-light: #c77ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40ca",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 286.087,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.57567,
    "c": 0.21546,
    "h": 317.3
  },
  "luminance": 0.16477
}

Semantic roles & 50–950 ramp

primary
#AA40CA
secondary
#A3D195
accent
#E0486B
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #AA40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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