#AA40C2#AA40C2

#AA40C2 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.1% C 0.208 H 319.7°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AA40C2
RGBrgb(170, 64, 194)
HSLhsl(289, 52%, 51%)
HSVhsv(289, 67%, 76%)
CMYKcmyk(12.4%, 67%, 0%, 23.9%)
CIE-LABlab(47.12, 61.22, -48.16)
CIE-LCHlch(47.12, 77.89, 321.81°)
OKLaboklab(57.07% 0.1588 -0.1347)
OKLCHoklch(57.07% 0.208 319.7)
XYZxyz(28.1473, 16.1092, 52.6552)
Luminance0.1611 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40C2 #58C240
analogous
#6940C2 #AA40C2 #C24099
triadic
#AA40C2 #C2AA40 #40C2AA
tetradic
#AA40C2 #C26940 #58C240 #4099C2
square
#AA40C2 #C26940 #58C240 #4099C2
split-complementary
#AA40C2 #99C240 #40C269
monochromatic
#5A2167 #823095 #AA40C2 #BF6ED1 #D39DE0

Accessibility & contrast

On white

4.97
#AA40C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#AA40C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40C2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40C2#FFFFFF#000000##FFFFFF
##AA40C21.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F69C6
Deuteranopia (green-blind)
#4A73BF
Tritanopia (blue-blind)
#AA577C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #aa40c2;
/* rgb */ color: rgb(170, 64, 194);
/* oklch */ color: oklch(57.1% 0.208 319.7);
Tailwind
colors: {
  custom: {
    50: '#c77dd5',
    500: '#aa40c2',
    950: '#000000',
  },
}
SCSS
$custom: #aa40c2;
$custom-light: #c77dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40c2",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 288.923,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5707,
    "c": 0.20824,
    "h": 319.7
  },
  "luminance": 0.16108
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AA40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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