#AA87EC#AA87EC

#AA87EC is a light, vivid violet. Relative luminance 0.319; OKLCH L 69.7% C 0.147 H 298.5°. Best body text is #000000 at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#AA87EC
RGBrgb(170, 135, 236)
HSLhsl(261, 73%, 73%)
HSVhsv(261, 43%, 93%)
CMYKcmyk(28%, 42.8%, 0%, 7.5%)
CIE-LABlab(63.28, 34.13, -46.28)
CIE-LCHlch(63.28, 57.50, 306.41°)
OKLaboklab(69.72% 0.0703 -0.1295)
OKLCHoklch(69.72% 0.147 298.5)
XYZxyz(40.3783, 31.9298, 83.3764)
Luminance0.3193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87EC #C9EC87
analogous
#8796EC #AA87EC #DC87EC
triadic
#AA87EC #ECAA87 #87ECAA
tetradic
#AA87EC #EC8796 #C9EC87 #87ECDC
square
#AA87EC #EC8796 #C9EC87 #87ECDC
split-complementary
#AA87EC #ECDC87 #96EC87
monochromatic
#6122D7 #8552E4 #AA87EC #CFBCF4 #ECE5FB

Accessibility & contrast

On white

2.84
#AA87EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.39
#AA87EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87EC
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87EC#FFFFFF#000000##000000
##AA87EC1.002.847.397.39
#FFFFFF2.841.0021.0021.00
#0000007.3921.001.001.00
##0000007.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A99F0
Deuteranopia (green-blind)
#7198E9
Tritanopia (blue-blind)
#9D99AE
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #aa87ec;
/* rgb */ color: rgb(170, 135, 236);
/* oklch */ color: oklch(69.7% 0.147 298.5);
Tailwind
colors: {
  custom: {
    50: '#c5aaf2',
    500: '#aa87ec',
    950: '#000000',
  },
}
SCSS
$custom: #aa87ec;
$custom-light: #c5aaf2;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87ec",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 236
  },
  "hsl": {
    "h": 260.792,
    "s": 72.662,
    "l": 72.745
  },
  "oklch": {
    "l": 0.69723,
    "c": 0.14739,
    "h": 298.5
  },
  "luminance": 0.3193
}

Semantic roles & 50–950 ramp

primary
#AA87EC
secondary
#E9F2D9
accent
#D51191
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #AA87EC

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

Preview Lab → · Contrast checker → · Palette generator →

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