#AA87F0#AA87F0

#AA87F0 is a light, vivid violet. Relative luminance 0.322; OKLCH L 69.9% C 0.153 H 297.7°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#AA87F0
RGBrgb(170, 135, 240)
HSLhsl(260, 78%, 74%)
HSVhsv(260, 44%, 94%)
CMYKcmyk(29.2%, 43.8%, 0%, 5.9%)
CIE-LABlab(63.48, 35.11, -48.18)
CIE-LCHlch(63.48, 59.61, 306.08°)
OKLaboklab(69.93% 0.0709 -0.1351)
OKLCHoklch(69.93% 0.153 297.7)
XYZxyz(40.9660, 32.1649, 86.4714)
Luminance0.3216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87F0 #CDF087
analogous
#8798F0 #AA87F0 #DE87F0
triadic
#AA87F0 #F0AA87 #87F0AA
tetradic
#AA87F0 #F08798 #CDF087 #87F0DE
square
#AA87F0 #F08798 #CDF087 #87F0DE
split-complementary
#AA87F0 #F0DE87 #98F087
monochromatic
#5E1CE1 #8351E9 #AA87F0 #D1BDF7 #ECE4FC

Accessibility & contrast

On white

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

On black

7.43
#AA87F0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87F0
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87F0#FFFFFF#000000##000000
##AA87F01.002.837.437.43
#FFFFFF2.831.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #aa87f0;
/* rgb */ color: rgb(170, 135, 240);
/* oklch */ color: oklch(69.9% 0.153 297.7);
Tailwind
colors: {
  custom: {
    50: '#c6aaf5',
    500: '#aa87f0',
    950: '#000000',
  },
}
SCSS
$custom: #aa87f0;
$custom-light: #c6aaf5;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87f0",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 240
  },
  "hsl": {
    "h": 260,
    "s": 77.778,
    "l": 73.529
  },
  "oklch": {
    "l": 0.69932,
    "c": 0.15256,
    "h": 297.7
  },
  "luminance": 0.32165
}

Semantic roles & 50–950 ramp

primary
#AA87F0
secondary
#EAF3D8
accent
#DA0B95
background
#FCFAFF
surface
#F8F4FE
border
#D1CED6
text
#131017
muted
#827F85

Preview Lab

Preview with #AA87F0

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

Preview Lab → · Contrast checker → · Palette generator →

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