#AA40A2#AA40A2

#AA40A2 is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.3% C 0.181 H 330.8°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#AA40A2
RGBrgb(170, 64, 162)
HSLhsl(305, 45%, 46%)
HSVhsv(305, 62%, 67%)
CMYKcmyk(0%, 62.4%, 4.7%, 33.3%)
CIE-LABlab(45.39, 55.45, -32.09)
CIE-LCHlch(45.39, 64.07, 329.94°)
OKLaboklab(55.26% 0.1576 -0.0881)
OKLCHoklch(55.26% 0.181 330.8)
XYZxyz(24.9324, 14.8233, 35.7234)
Luminance0.1482 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40A2 #40AA48
analogous
#7D40AA #AA40A2 #AA406D
triadic
#AA40A2 #A2AA40 #40A2AA
tetradic
#AA40A2 #AA7D40 #40AA48 #406DAA
square
#AA40A2 #AA7D40 #40AA48 #406DAA
split-complementary
#AA40A2 #6DAA40 #40AA7D
monochromatic
#511F4D #7E2F78 #AA40A2 #C463BD #D58FD0

Accessibility & contrast

On white

5.30
#AA40A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#AA40A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40A2
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40A2#FFFFFF#000000##FFFFFF
##AA40A21.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3962A5
Deuteranopia (green-blind)
#5D719F
Tritanopia (blue-blind)
#B04B6B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #aa40a2;
/* rgb */ color: rgb(170, 64, 162);
/* oklch */ color: oklch(55.3% 0.181 330.8);
Tailwind
colors: {
  custom: {
    50: '#c67cbe',
    500: '#aa40a2',
    950: '#000000',
  },
}
SCSS
$custom: #aa40a2;
$custom-light: #c67cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40a2",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 304.528,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55263,
    "c": 0.18054,
    "h": 330.8
  },
  "luminance": 0.14821
}

Semantic roles & 50–950 ramp

primary
#AA40A2
secondary
#86C08A
accent
#D55D53
background
#FCF7FB
surface
#F8EEF6
border
#D1C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #AA40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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