#AA40C0#AA40C0

#AA40C0 is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 56.9% C 0.206 H 320.3°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AA40C0
RGBrgb(170, 64, 192)
HSLhsl(290, 50%, 50%)
HSVhsv(290, 67%, 75%)
CMYKcmyk(11.5%, 66.7%, 0%, 24.7%)
CIE-LABlab(47.00, 60.84, -47.19)
CIE-LCHlch(47.00, 76.99, 322.20°)
OKLaboklab(56.95% 0.1588 -0.1319)
OKLCHoklch(56.95% 0.206 320.3)
XYZxyz(27.9242, 16.0200, 51.4802)
Luminance0.1602 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40C0 #56C040
analogous
#6A40C0 #AA40C0 #C04096
triadic
#AA40C0 #C0AA40 #40C0AA
tetradic
#AA40C0 #C06A40 #56C040 #4096C0
square
#AA40C0 #C06A40 #56C040 #4096C0
split-complementary
#AA40C0 #96C040 #40C06A
monochromatic
#592164 #823092 #AA40C0 #BE6ECF #D39CDE

Accessibility & contrast

On white

5.00
#AA40C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#AA40C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40C0
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40C0#FFFFFF#000000##FFFFFF
##AA40C01.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1468C4
Deuteranopia (green-blind)
#4C73BD
Tritanopia (blue-blind)
#AB567B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #aa40c0;
/* rgb */ color: rgb(170, 64, 192);
/* oklch */ color: oklch(56.9% 0.206 320.3);
Tailwind
colors: {
  custom: {
    50: '#c77dd3',
    500: '#aa40c0',
    950: '#000000',
  },
}
SCSS
$custom: #aa40c0;
$custom-light: #c77dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40c0",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 289.688,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.56948,
    "c": 0.20644,
    "h": 320.3
  },
  "luminance": 0.16019
}

Semantic roles & 50–950 ramp

primary
#AA40C0
secondary
#9BCB91
accent
#DA4E66
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #AA40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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