#AA87FC#AA87FC

#AA87FC is a light, vivid violet. Relative luminance 0.329; OKLCH L 70.6% C 0.168 H 295.6°. Best body text is #000000 at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#AA87FC
RGBrgb(170, 135, 252)
HSLhsl(258, 95%, 76%)
HSVhsv(258, 46%, 99%)
CMYKcmyk(32.5%, 46.4%, 0%, 1.2%)
CIE-LABlab(64.08, 38.09, -53.82)
CIE-LCHlch(64.08, 65.93, 305.28°)
OKLaboklab(70.58% 0.0725 -0.1515)
OKLCHoklch(70.58% 0.168 295.6)
XYZxyz(42.8078, 32.9016, 96.1719)
Luminance0.3290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87FC #D9FC87
analogous
#879EFC #AA87FC #E587FC
triadic
#AA87FC #FCAA87 #87FCAA
tetradic
#AA87FC #FC879E #D9FC87 #87FCE5
square
#AA87FC #FC879E #D9FC87 #87FCE5
split-complementary
#AA87FC #FCE587 #9EFC87
monochromatic
#5510F9 #804BFB #AA87FC #D4C3FD #EAE1FE

Accessibility & contrast

On white

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

On black

7.58
#AA87FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87FC
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87FC#FFFFFF#000000##000000
##AA87FC1.002.777.587.58
#FFFFFF2.771.0021.0021.00
#0000007.5821.001.001.00
##0000007.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#609CFF
Deuteranopia (green-blind)
#679AF9
Tritanopia (blue-blind)
#989DB6
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #aa87fc;
/* rgb */ color: rgb(170, 135, 252);
/* oklch */ color: oklch(70.6% 0.168 295.6);
Tailwind
colors: {
  custom: {
    50: '#c6aafe',
    500: '#aa87fc',
    950: '#000000',
  },
}
SCSS
$custom: #aa87fc;
$custom-light: #c6aafe;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87fc",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 257.949,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.70581,
    "c": 0.16799,
    "h": 295.6
  },
  "luminance": 0.32902
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AA87FC

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

Preview Lab → · Contrast checker → · Palette generator →

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