#AA87F5#AA87F5

#AA87F5 is a light, vivid violet. Relative luminance 0.325; OKLCH L 70.2% C 0.159 H 296.8°. Best body text is #000000 at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#AA87F5
RGBrgb(170, 135, 245)
HSLhsl(259, 85%, 75%)
HSVhsv(259, 45%, 96%)
CMYKcmyk(30.6%, 44.9%, 0%, 3.9%)
CIE-LABlab(63.73, 36.34, -50.54)
CIE-LCHlch(63.73, 62.25, 305.72°)
OKLaboklab(70.2% 0.0716 -0.142)
OKLCHoklch(70.2% 0.159 296.8)
XYZxyz(41.7189, 32.4661, 90.4371)
Luminance0.3247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87F5 #D2F587
analogous
#879BF5 #AA87F5 #E187F5
triadic
#AA87F5 #F5AA87 #87F5AA
tetradic
#AA87F5 #F5879B #D2F587 #87F5E1
square
#AA87F5 #F5879B #D2F587 #87F5E1
split-complementary
#AA87F5 #F5E187 #9BF587
monochromatic
#5A16EC #824FF0 #AA87F5 #D2BFFA #EBE3FD

Accessibility & contrast

On white

2.80
#AA87F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.49
#AA87F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87F5
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87F5#FFFFFF#000000##000000
##AA87F51.002.807.497.49
#FFFFFF2.801.0021.0021.00
#0000007.4921.001.001.00
##0000007.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#659BF9
Deuteranopia (green-blind)
#6B99F2
Tritanopia (blue-blind)
#9A9BB2
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #aa87f5;
/* rgb */ color: rgb(170, 135, 245);
/* oklch */ color: oklch(70.2% 0.159 296.8);
Tailwind
colors: {
  custom: {
    50: '#c6aaf9',
    500: '#aa87f5',
    950: '#000000',
  },
}
SCSS
$custom: #aa87f5;
$custom-light: #c6aaf9;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87f5",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 259.091,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.70199,
    "c": 0.159,
    "h": 296.8
  },
  "luminance": 0.32467
}

Semantic roles & 50–950 ramp

primary
#AA87F5
secondary
#EBF5D6
accent
#E1049B
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AA87F5

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

Preview Lab → · Contrast checker → · Palette generator →

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