#AA87FF#AA87FF

#AA87FF is a light, vivid violet. Relative luminance 0.331; OKLCH L 70.7% C 0.172 H 295.1°. Best body text is #000000 at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#AA87FF
RGBrgb(170, 135, 255)
HSLhsl(258, 100%, 76%)
HSVhsv(258, 47%, 100%)
CMYKcmyk(33.3%, 47.1%, 0%, 0%)
CIE-LABlab(64.24, 38.84, -55.22)
CIE-LCHlch(64.24, 67.51, 305.12°)
OKLaboklab(70.75% 0.0729 -0.1556)
OKLCHoklch(70.75% 0.172 295.1)
XYZxyz(43.2870, 33.0933, 98.6954)
Luminance0.3309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87FF #DCFF87
analogous
#87A0FF #AA87FF #E687FF
triadic
#AA87FF #FFAA87 #87FFAA
tetradic
#AA87FF #FF87A0 #DCFF87 #87FFE6
square
#AA87FF #FF87A0 #DCFF87 #87FFE6
split-complementary
#AA87FF #FFE687 #A0FF87
monochromatic
#530DFF #7F4AFF #AA87FF #D5C4FF #E9E0FF

Accessibility & contrast

On white

2.76
#AA87FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.62
#AA87FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87FF
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87FF#FFFFFF#000000##000000
##AA87FF1.002.767.627.62
#FFFFFF2.761.0021.0021.00
#0000007.6221.001.001.00
##0000007.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E9DFF
Deuteranopia (green-blind)
#649AFC
Tritanopia (blue-blind)
#979EB7
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #aa87ff;
/* rgb */ color: rgb(170, 135, 255);
/* oklch */ color: oklch(70.7% 0.172 295.1);
Tailwind
colors: {
  custom: {
    50: '#c7aaff',
    500: '#aa87ff',
    950: '#000000',
  },
}
SCSS
$custom: #aa87ff;
$custom-light: #c7aaff;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87ff",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 255
  },
  "hsl": {
    "h": 257.5,
    "s": 100,
    "l": 76.471
  },
  "oklch": {
    "l": 0.70748,
    "c": 0.17183,
    "h": 295.1
  },
  "luminance": 0.33094
}

Semantic roles & 50–950 ramp

primary
#AA87FF
secondary
#EDF7D4
accent
#E600A3
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AA87FF

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

Preview Lab → · Contrast checker → · Palette generator →

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