#AA40E1#AA40E1

#AA40E1 is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 59.1% C 0.237 H 311.3°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#AA40E1
RGBrgb(170, 64, 225)
HSLhsl(280, 73%, 57%)
HSVhsv(280, 72%, 88%)
CMYKcmyk(24.4%, 71.6%, 0%, 11.8%)
CIE-LABlab(49.07, 67.36, -62.81)
CIE-LCHlch(49.07, 92.10, 317.00°)
OKLaboklab(59.09% 0.1562 -0.1777)
OKLCHoklch(59.09% 0.237 311.3)
XYZxyz(31.9990, 17.6499, 72.9407)
Luminance0.1765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40E1 #77E140
analogous
#5A40E1 #AA40E1 #E140C8
triadic
#AA40E1 #E1AA40 #40E1AA
tetradic
#AA40E1 #E15A40 #77E140 #40C8E1
square
#AA40E1 #E15A40 #77E140 #40C8E1
split-complementary
#AA40E1 #C8E140 #40E15A
monochromatic
#671790 #8C1FC5 #AA40E1 #C275E9 #D9AAF2

Accessibility & contrast

On white

4.64
#AA40E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#AA40E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40E1
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40E1#FFFFFF#000000##FFFFFF
##AA40E11.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E6
Deuteranopia (green-blind)
#2776DE
Tritanopia (blue-blind)
#A3648D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #aa40e1;
/* rgb */ color: rgb(170, 64, 225);
/* oklch */ color: oklch(59.1% 0.237 311.3);
Tailwind
colors: {
  custom: {
    50: '#c87eeb',
    500: '#aa40e1',
    950: '#000000',
  },
}
SCSS
$custom: #aa40e1;
$custom-light: #c87eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40e1",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 225
  },
  "hsl": {
    "h": 279.503,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.59086,
    "c": 0.23654,
    "h": 311.3
  },
  "luminance": 0.17649
}

Semantic roles & 50–950 ramp

primary
#AA40E1
secondary
#B4DF9D
accent
#F03877
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AA40E1

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

Preview Lab → · Contrast checker → · Palette generator →

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