#AA87E7#AA87E7

#AA87E7 is a light, vivid violet. Relative luminance 0.316; OKLCH L 69.5% C 0.141 H 299.5°. Best body text is #000000 at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#AA87E7
RGBrgb(170, 135, 231)
HSLhsl(262, 67%, 72%)
HSVhsv(262, 42%, 91%)
CMYKcmyk(26.4%, 41.6%, 0%, 9.4%)
CIE-LABlab(63.05, 32.92, -43.88)
CIE-LCHlch(63.05, 54.86, 306.87°)
OKLaboklab(69.47% 0.0695 -0.1226)
OKLCHoklch(69.47% 0.141 299.5)
XYZxyz(39.6620, 31.6433, 79.6040)
Luminance0.3164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87E7 #C4E787
analogous
#8794E7 #AA87E7 #DA87E7
triadic
#AA87E7 #E7AA87 #87E7AA
tetradic
#AA87E7 #E78794 #C4E787 #87E7DA
square
#AA87E7 #E78794 #C4E787 #87E7DA
split-complementary
#AA87E7 #E7DA87 #94E787
monochromatic
#6429CB #8654DD #AA87E7 #CEBAF1 #EDE5FA

Accessibility & contrast

On white

2.87
#AA87E7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.33
#AA87E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87E7
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87E7#FFFFFF#000000##000000
##AA87E71.002.877.337.33
#FFFFFF2.871.0021.0021.00
#0000007.3321.001.001.00
##0000007.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D98EB
Deuteranopia (green-blind)
#7498E5
Tritanopia (blue-blind)
#9E98AC
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #aa87e7;
/* rgb */ color: rgb(170, 135, 231);
/* oklch */ color: oklch(69.5% 0.141 299.5);
Tailwind
colors: {
  custom: {
    50: '#c5aaef',
    500: '#aa87e7',
    950: '#000000',
  },
}
SCSS
$custom: #aa87e7;
$custom-light: #c5aaef;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87e7",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 231
  },
  "hsl": {
    "h": 261.875,
    "s": 66.667,
    "l": 71.765
  },
  "oklch": {
    "l": 0.69466,
    "c": 0.14091,
    "h": 299.5
  },
  "luminance": 0.31644
}

Semantic roles & 50–950 ramp

primary
#AA87E7
secondary
#E8F1D9
accent
#CF178C
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AA87E7

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

Preview Lab → · Contrast checker → · Palette generator →

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