#AA87F9#AA87F9

#AA87F9 is a light, vivid violet. Relative luminance 0.327; OKLCH L 70.4% C 0.164 H 296.1°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#AA87F9
RGBrgb(170, 135, 249)
HSLhsl(258, 90%, 75%)
HSVhsv(258, 46%, 98%)
CMYKcmyk(31.7%, 45.8%, 0%, 2.4%)
CIE-LABlab(63.93, 37.33, -52.42)
CIE-LCHlch(63.93, 64.36, 305.46°)
OKLaboklab(70.42% 0.0722 -0.1474)
OKLCHoklch(70.42% 0.164 296.1)
XYZxyz(42.3362, 32.7130, 93.6879)
Luminance0.3271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87F9 #D6F987
analogous
#879DF9 #AA87F9 #E387F9
triadic
#AA87F9 #F9AA87 #87F9AA
tetradic
#AA87F9 #F9879D #D6F987 #87F9E3
square
#AA87F9 #F9879D #D6F987 #87F9E3
split-complementary
#AA87F9 #F9E387 #9DF987
monochromatic
#5712F3 #814DF6 #AA87F9 #D3C1FC #EAE2FE

Accessibility & contrast

On white

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

On black

7.54
#AA87F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87F9
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87F9#FFFFFF#000000##000000
##AA87F91.002.787.547.54
#FFFFFF2.781.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#629CFD
Deuteranopia (green-blind)
#6999F6
Tritanopia (blue-blind)
#999CB4
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #aa87f9;
/* rgb */ color: rgb(170, 135, 249);
/* oklch */ color: oklch(70.4% 0.164 296.1);
Tailwind
colors: {
  custom: {
    50: '#c6aafc',
    500: '#aa87f9',
    950: '#000000',
  },
}
SCSS
$custom: #aa87f9;
$custom-light: #c6aafc;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87f9",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 249
  },
  "hsl": {
    "h": 258.421,
    "s": 90.476,
    "l": 75.294
  },
  "oklch": {
    "l": 0.70416,
    "c": 0.16415,
    "h": 296.1
  },
  "luminance": 0.32714
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AA87F9

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

Preview Lab → · Contrast checker → · Palette generator →

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