#AA87EF#AA87EF

#AA87EF is a light, vivid violet. Relative luminance 0.321; OKLCH L 69.9% C 0.151 H 297.9°. Best body text is #000000 at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#AA87EF
RGBrgb(170, 135, 239)
HSLhsl(260, 76%, 73%)
HSVhsv(260, 44%, 94%)
CMYKcmyk(28.9%, 43.5%, 0%, 6.3%)
CIE-LABlab(63.43, 34.86, -47.70)
CIE-LCHlch(63.43, 59.08, 306.16°)
OKLaboklab(69.88% 0.0708 -0.1337)
OKLCHoklch(69.88% 0.151 297.9)
XYZxyz(40.8178, 32.1056, 85.6912)
Luminance0.3211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87EF #CCEF87
analogous
#8798EF #AA87EF #DE87EF
triadic
#AA87EF #EFAA87 #87EFAA
tetradic
#AA87EF #EF8798 #CCEF87 #87EFDE
square
#AA87EF #EF8798 #CCEF87 #87EFDE
split-complementary
#AA87EF #EFDE87 #98EF87
monochromatic
#5E1EDE #8451E8 #AA87EF #D0BDF6 #ECE4FB

Accessibility & contrast

On white

2.83
#AA87EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.42
#AA87EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87EF
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87EF#FFFFFF#000000##000000
##AA87EF1.002.837.427.42
#FFFFFF2.831.0021.0021.00
#0000007.4221.001.001.00
##0000007.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#689AF3
Deuteranopia (green-blind)
#6F99EC
Tritanopia (blue-blind)
#9C9AB0
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #aa87ef;
/* rgb */ color: rgb(170, 135, 239);
/* oklch */ color: oklch(69.9% 0.151 297.9);
Tailwind
colors: {
  custom: {
    50: '#c6aaf5',
    500: '#aa87ef',
    950: '#000000',
  },
}
SCSS
$custom: #aa87ef;
$custom-light: #c6aaf5;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87ef",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 260.192,
    "s": 76.471,
    "l": 73.333
  },
  "oklch": {
    "l": 0.6988,
    "c": 0.15127,
    "h": 297.9
  },
  "luminance": 0.32106
}

Semantic roles & 50–950 ramp

primary
#AA87EF
secondary
#EAF3D8
accent
#D90D94
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #AA87EF

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

Preview Lab → · Contrast checker → · Palette generator →

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