#AA87FB#AA87FB

#AA87FB is a light, vivid violet. Relative luminance 0.328; OKLCH L 70.5% C 0.167 H 295.7°. Best body text is #000000 at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#AA87FB
RGBrgb(170, 135, 251)
HSLhsl(258, 94%, 76%)
HSVhsv(258, 46%, 98%)
CMYKcmyk(32.3%, 46.2%, 0%, 1.6%)
CIE-LABlab(64.03, 37.84, -53.36)
CIE-LCHlch(64.03, 65.41, 305.34°)
OKLaboklab(70.53% 0.0724 -0.1502)
OKLCHoklch(70.53% 0.167 295.7)
XYZxyz(42.6498, 32.8384, 95.3395)
Luminance0.3284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87FB #D8FB87
analogous
#879EFB #AA87FB #E487FB
triadic
#AA87FB #FBAA87 #87FBAA
tetradic
#AA87FB #FB879E #D8FB87 #87FBE4
square
#AA87FB #FB879E #D8FB87 #87FBE4
split-complementary
#AA87FB #FBE487 #9EFB87
monochromatic
#5611F7 #804CF9 #AA87FB #D4C2FD #EAE1FE

Accessibility & contrast

On white

2.77
#AA87FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.57
#AA87FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87FB
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87FB#FFFFFF#000000##000000
##AA87FB1.002.777.577.57
#FFFFFF2.771.0021.0021.00
#0000007.5721.001.001.00
##0000007.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#619CFF
Deuteranopia (green-blind)
#679AF8
Tritanopia (blue-blind)
#989DB5
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #aa87fb;
/* rgb */ color: rgb(170, 135, 251);
/* oklch */ color: oklch(70.5% 0.167 295.7);
Tailwind
colors: {
  custom: {
    50: '#c6aafd',
    500: '#aa87fb',
    950: '#000000',
  },
}
SCSS
$custom: #aa87fb;
$custom-light: #c6aafd;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87fb",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 251
  },
  "hsl": {
    "h": 258.103,
    "s": 93.548,
    "l": 75.686
  },
  "oklch": {
    "l": 0.70526,
    "c": 0.16672,
    "h": 295.7
  },
  "luminance": 0.32839
}

Semantic roles & 50–950 ramp

primary
#AA87FB
secondary
#ECF6D5
accent
#E600A0
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AA87FB

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

Preview Lab → · Contrast checker → · Palette generator →

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