#AA40E2#AA40E2

#AA40E2 is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 59.2% C 0.237 H 311.1°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#AA40E2
RGBrgb(170, 64, 226)
HSLhsl(279, 74%, 57%)
HSVhsv(279, 72%, 89%)
CMYKcmyk(24.8%, 71.7%, 0%, 11.4%)
CIE-LABlab(49.14, 67.57, -63.27)
CIE-LCHlch(49.14, 92.57, 316.88°)
OKLaboklab(59.16% 0.156 -0.179)
OKLCHoklch(59.16% 0.237 311.1)
XYZxyz(32.1358, 17.7046, 73.6612)
Luminance0.1770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40E2 #78E240
analogous
#5940E2 #AA40E2 #E240C9
triadic
#AA40E2 #E2AA40 #40E2AA
tetradic
#AA40E2 #E25940 #78E240 #40C9E2
square
#AA40E2 #E25940 #78E240 #40C9E2
split-complementary
#AA40E2 #C9E240 #40E259
monochromatic
#671692 #8C1EC7 #AA40E2 #C275EA #D9AAF2

Accessibility & contrast

On white

4.62
#AA40E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#AA40E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40E2
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40E2#FFFFFF#000000##FFFFFF
##AA40E21.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E7
Deuteranopia (green-blind)
#2577DF
Tritanopia (blue-blind)
#A3648E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #aa40e2;
/* rgb */ color: rgb(170, 64, 226);
/* oklch */ color: oklch(59.2% 0.237 311.1);
Tailwind
colors: {
  custom: {
    50: '#c87eec',
    500: '#aa40e2',
    950: '#000000',
  },
}
SCSS
$custom: #aa40e2;
$custom-light: #c87eec;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40e2",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 279.259,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.59155,
    "c": 0.23746,
    "h": 311.1
  },
  "luminance": 0.17704
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AA40E2

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

Preview Lab → · Contrast checker → · Palette generator →

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