#AA5EC2#AA5EC2

#AA5EC2 is a mid, vivid purple. Relative luminance 0.204; OKLCH L 60.9% C 0.164 H 317.6°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#AA5EC2
RGBrgb(170, 94, 194)
HSLhsl(286, 45%, 56%)
HSVhsv(286, 52%, 76%)
CMYKcmyk(12.4%, 51.5%, 0%, 23.9%)
CIE-LABlab(52.34, 47.06, -39.87)
CIE-LCHlch(52.34, 61.68, 319.73°)
OKLaboklab(60.88% 0.1212 -0.1108)
OKLCHoklch(60.88% 0.164 317.6)
XYZxyz(30.3165, 20.4475, 53.3783)
Luminance0.2045 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA5EC2 #76C25E
analogous
#785EC2 #AA5EC2 #C25EA8
triadic
#AA5EC2 #C2AA5E #5EC2AA
tetradic
#AA5EC2 #C2785E #76C25E #5EA8C2
square
#AA5EC2 #C2785E #76C25E #5EA8C2
split-complementary
#AA5EC2 #A8C25E #5EC278
monochromatic
#662E78 #8C3EA4 #AA5EC2 #C18AD3 #D9B7E4

Accessibility & contrast

On white

4.13
#AA5EC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#AA5EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA5EC2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA5EC2#FFFFFF#000000##000000
##AA5EC21.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A78C5
Deuteranopia (green-blind)
#627FBF
Tritanopia (blue-blind)
#AA6D87
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #aa5ec2;
/* rgb */ color: rgb(170, 94, 194);
/* oklch */ color: oklch(60.9% 0.164 317.6);
Tailwind
colors: {
  custom: {
    50: '#c58ed5',
    500: '#aa5ec2',
    950: '#000000',
  },
}
SCSS
$custom: #aa5ec2;
$custom-light: #c58ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#aa5ec2",
  "rgb": {
    "r": 170,
    "g": 94,
    "b": 194
  },
  "hsl": {
    "h": 285.6,
    "s": 45.045,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60877,
    "c": 0.16418,
    "h": 317.6
  },
  "luminance": 0.20446
}

Semantic roles & 50–950 ramp

primary
#AA5EC2
secondary
#B3D2A9
accent
#D55372
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AA5EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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