#AA87FA#AA87FA

#AA87FA is a light, vivid violet. Relative luminance 0.328; OKLCH L 70.5% C 0.165 H 295.9°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#AA87FA
RGBrgb(170, 135, 250)
HSLhsl(258, 92%, 75%)
HSVhsv(258, 46%, 98%)
CMYKcmyk(32%, 46%, 0%, 2%)
CIE-LABlab(63.98, 37.59, -52.89)
CIE-LCHlch(63.98, 64.88, 305.40°)
OKLaboklab(70.47% 0.0723 -0.1488)
OKLCHoklch(70.47% 0.165 295.9)
XYZxyz(42.4926, 32.7755, 94.5115)
Luminance0.3278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87FA #D7FA87
analogous
#879DFA #AA87FA #E487FA
triadic
#AA87FA #FAAA87 #87FAAA
tetradic
#AA87FA #FA879D #D7FA87 #87FAE4
square
#AA87FA #FA879D #D7FA87 #87FAE4
split-complementary
#AA87FA #FAE487 #9DFA87
monochromatic
#5711F5 #804CF8 #AA87FA #D4C2FC #EAE2FE

Accessibility & contrast

On white

2.78
#AA87FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.56
#AA87FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87FA
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87FA#FFFFFF#000000##000000
##AA87FA1.002.787.567.56
#FFFFFF2.781.0021.0021.00
#0000007.5621.001.001.00
##0000007.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#619CFE
Deuteranopia (green-blind)
#689AF7
Tritanopia (blue-blind)
#989DB5
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #aa87fa;
/* rgb */ color: rgb(170, 135, 250);
/* oklch */ color: oklch(70.5% 0.165 295.9);
Tailwind
colors: {
  custom: {
    50: '#c6aafc',
    500: '#aa87fa',
    950: '#000000',
  },
}
SCSS
$custom: #aa87fa;
$custom-light: #c6aafc;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87fa",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 250
  },
  "hsl": {
    "h": 258.261,
    "s": 92,
    "l": 75.49
  },
  "oklch": {
    "l": 0.70471,
    "c": 0.16543,
    "h": 295.9
  },
  "luminance": 0.32776
}

Semantic roles & 50–950 ramp

primary
#AA87FA
secondary
#ECF6D5
accent
#E600A0
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AA87FA

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

Preview Lab → · Contrast checker → · Palette generator →

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