#AA87EA#AA87EA

#AA87EA is a light, vivid violet. Relative luminance 0.318; OKLCH L 69.6% C 0.145 H 298.9°. Best body text is #000000 at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#AA87EA
RGBrgb(170, 135, 234)
HSLhsl(261, 70%, 72%)
HSVhsv(261, 42%, 92%)
CMYKcmyk(27.4%, 42.3%, 0%, 8.2%)
CIE-LABlab(63.19, 33.64, -45.32)
CIE-LCHlch(63.19, 56.44, 306.59°)
OKLaboklab(69.62% 0.07 -0.1268)
OKLCHoklch(69.62% 0.145 298.9)
XYZxyz(40.0894, 31.8142, 81.8546)
Luminance0.3181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87EA #C7EA87
analogous
#8796EA #AA87EA #DB87EA
triadic
#AA87EA #EAAA87 #87EAAA
tetradic
#AA87EA #EA8796 #C7EA87 #87EADB
square
#AA87EA #EA8796 #C7EA87 #87EADB
split-complementary
#AA87EA #EADB87 #96EA87
monochromatic
#6225D2 #8553E1 #AA87EA #CFBBF3 #EDE5FA

Accessibility & contrast

On white

2.85
#AA87EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.36
#AA87EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87EA
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87EA#FFFFFF#000000##000000
##AA87EA1.002.857.367.36
#FFFFFF2.851.0021.0021.00
#0000007.3621.001.001.00
##0000007.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B99EE
Deuteranopia (green-blind)
#7298E7
Tritanopia (blue-blind)
#9D98AD
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #aa87ea;
/* rgb */ color: rgb(170, 135, 234);
/* oklch */ color: oklch(69.6% 0.145 298.9);
Tailwind
colors: {
  custom: {
    50: '#c5aaf1',
    500: '#aa87ea',
    950: '#000000',
  },
}
SCSS
$custom: #aa87ea;
$custom-light: #c5aaf1;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87ea",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 234
  },
  "hsl": {
    "h": 261.212,
    "s": 70.213,
    "l": 72.353
  },
  "oklch": {
    "l": 0.69619,
    "c": 0.1448,
    "h": 298.9
  },
  "luminance": 0.31815
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AA87EA

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

Preview Lab → · Contrast checker → · Palette generator →

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