#AA40C8#AA40C8

#AA40C8 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.4% C 0.214 H 317.9°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#AA40C8
RGBrgb(170, 64, 200)
HSLhsl(287, 55%, 52%)
HSVhsv(287, 68%, 78%)
CMYKcmyk(15%, 68%, 0%, 21.6%)
CIE-LABlab(47.47, 62.37, -51.06)
CIE-LCHlch(47.47, 80.61, 320.69°)
OKLaboklab(57.44% 0.1585 -0.1432)
OKLCHoklch(57.44% 0.214 317.9)
XYZxyz(28.8348, 16.3842, 56.2760)
Luminance0.1638 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40C8 #5EC840
analogous
#6640C8 #AA40C8 #C840A2
triadic
#AA40C8 #C8AA40 #40C8AA
tetradic
#AA40C8 #C86640 #5EC840 #40A2C8
square
#AA40C8 #C86640 #5EC840 #40A2C8
split-complementary
#AA40C8 #A2C840 #40C866
monochromatic
#5D206E #852D9D #AA40C8 #BF70D6 #D49FE3

Accessibility & contrast

On white

4.91
#AA40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#AA40C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40C8
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40C8#FFFFFF#000000##FFFFFF
##AA40C81.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#4574C5
Tritanopia (blue-blind)
#A95A7F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #aa40c8;
/* rgb */ color: rgb(170, 64, 200);
/* oklch */ color: oklch(57.4% 0.214 317.9);
Tailwind
colors: {
  custom: {
    50: '#c77dd9',
    500: '#aa40c8',
    950: '#000000',
  },
}
SCSS
$custom: #aa40c8;
$custom-light: #c77dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40c8",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 286.765,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.57441,
    "c": 0.21365,
    "h": 317.9
  },
  "luminance": 0.16383
}

Semantic roles & 50–950 ramp

primary
#AA40C8
secondary
#A1D094
accent
#DF496A
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #AA40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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