#AA40C3#AA40C3

#AA40C3 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.1% C 0.209 H 319.4°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#AA40C3
RGBrgb(170, 64, 195)
HSLhsl(289, 52%, 51%)
HSVhsv(289, 67%, 76%)
CMYKcmyk(12.8%, 67.2%, 0%, 23.5%)
CIE-LABlab(47.18, 61.41, -48.65)
CIE-LCHlch(47.18, 78.34, 321.61°)
OKLaboklab(57.13% 0.1588 -0.1361)
OKLCHoklch(57.13% 0.209 319.4)
XYZxyz(28.2600, 16.1543, 53.2487)
Luminance0.1615 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40C3 #59C340
analogous
#6840C3 #AA40C3 #C3409A
triadic
#AA40C3 #C3AA40 #40C3AA
tetradic
#AA40C3 #C36840 #59C340 #409AC3
square
#AA40C3 #C36840 #59C340 #409AC3
split-complementary
#AA40C3 #9AC340 #40C368
monochromatic
#5A2168 #832F97 #AA40C3 #BF6FD2 #D39DE0

Accessibility & contrast

On white

4.96
#AA40C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#AA40C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40C3
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40C3#FFFFFF#000000##FFFFFF
##AA40C31.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B69C7
Deuteranopia (green-blind)
#4973C0
Tritanopia (blue-blind)
#AA587C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #aa40c3;
/* rgb */ color: rgb(170, 64, 195);
/* oklch */ color: oklch(57.1% 0.209 319.4);
Tailwind
colors: {
  custom: {
    50: '#c77dd6',
    500: '#aa40c3',
    950: '#000000',
  },
}
SCSS
$custom: #aa40c3;
$custom-light: #c77dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40c3",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 288.55,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.57131,
    "c": 0.20914,
    "h": 319.4
  },
  "luminance": 0.16153
}

Semantic roles & 50–950 ramp

primary
#AA40C3
secondary
#9DCC92
accent
#DC4C68
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130A14
muted
#827C83

Preview Lab

Preview with #AA40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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