#AA40CD#AA40CD

#AA40CD is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.8% C 0.218 H 316.5°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AA40CD
RGBrgb(170, 64, 205)
HSLhsl(285, 59%, 53%)
HSVhsv(285, 69%, 80%)
CMYKcmyk(17.1%, 68.8%, 0%, 19.6%)
CIE-LABlab(47.78, 63.34, -53.46)
CIE-LCHlch(47.78, 82.89, 319.84°)
OKLaboklab(57.76% 0.1582 -0.1502)
OKLCHoklch(57.76% 0.218 316.5)
XYZxyz(29.4287, 16.6218, 59.4039)
Luminance0.1662 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40CD #63CD40
analogous
#6340CD #AA40CD #CD40AA
triadic
#AA40CD #CDAA40 #40CDAA
tetradic
#AA40CD #CD6340 #63CD40 #40AACD
square
#AA40CD #CD6340 #63CD40 #40AACD
split-complementary
#AA40CD #AACD40 #40CD63
monochromatic
#5F1E74 #872BA5 #AA40CD #C071DA #D5A1E6

Accessibility & contrast

On white

4.86
#AA40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#AA40CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40CD
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40CD#FFFFFF#000000##FFFFFF
##AA40CD1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#4174CA
Tritanopia (blue-blind)
#A85C82
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #aa40cd;
/* rgb */ color: rgb(170, 64, 205);
/* oklch */ color: oklch(57.8% 0.218 316.5);
Tailwind
colors: {
  custom: {
    50: '#c77ddd',
    500: '#aa40cd',
    950: '#000000',
  },
}
SCSS
$custom: #aa40cd;
$custom-light: #c77ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40cd",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 285.106,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.57757,
    "c": 0.21819,
    "h": 316.5
  },
  "luminance": 0.16621
}

Semantic roles & 50–950 ramp

primary
#AA40CD
secondary
#A5D396
accent
#E2466D
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #AA40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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