#AA87FE#AA87FE

#AA87FE is a light, vivid violet. Relative luminance 0.330; OKLCH L 70.7% C 0.171 H 295.2°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#AA87FE
RGBrgb(170, 135, 254)
HSLhsl(258, 98%, 76%)
HSVhsv(258, 47%, 100%)
CMYKcmyk(33.1%, 46.9%, 0%, 0.4%)
CIE-LABlab(64.18, 38.59, -54.75)
CIE-LCHlch(64.18, 66.99, 305.18°)
OKLaboklab(70.69% 0.0728 -0.1543)
OKLCHoklch(70.69% 0.171 295.2)
XYZxyz(43.1264, 33.0290, 97.8498)
Luminance0.3303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87FE #DBFE87
analogous
#87A0FE #AA87FE #E687FE
triadic
#AA87FE #FEAA87 #87FEAA
tetradic
#AA87FE #FE87A0 #DBFE87 #87FEE6
square
#AA87FE #FE87A0 #DBFE87 #87FEE6
split-complementary
#AA87FE #FEE687 #A0FE87
monochromatic
#540EFD #7F4AFD #AA87FE #D5C4FF #EAE1FF

Accessibility & contrast

On white

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

On black

7.61
#AA87FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87FE
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87FE#FFFFFF#000000##000000
##AA87FE1.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9DFF
Deuteranopia (green-blind)
#659AFB
Tritanopia (blue-blind)
#979EB6
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #aa87fe;
/* rgb */ color: rgb(170, 135, 254);
/* oklch */ color: oklch(70.7% 0.171 295.2);
Tailwind
colors: {
  custom: {
    50: '#c6aaff',
    500: '#aa87fe',
    950: '#000000',
  },
}
SCSS
$custom: #aa87fe;
$custom-light: #c6aaff;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87fe",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 254
  },
  "hsl": {
    "h": 257.647,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.70692,
    "c": 0.17055,
    "h": 295.2
  },
  "luminance": 0.3303
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AA87FE

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

Preview Lab → · Contrast checker → · Palette generator →

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