#AA87F8#AA87F8

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

Color values

HEX#AA87F8
RGBrgb(170, 135, 248)
HSLhsl(259, 89%, 75%)
HSVhsv(259, 46%, 97%)
CMYKcmyk(31.5%, 45.6%, 0%, 2.7%)
CIE-LABlab(63.88, 37.09, -51.95)
CIE-LCHlch(63.88, 63.83, 305.52°)
OKLaboklab(70.36% 0.072 -0.1461)
OKLCHoklch(70.36% 0.163 296.2)
XYZxyz(42.1806, 32.6507, 92.8687)
Luminance0.3265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87F8 #D5F887
analogous
#879DF8 #AA87F8 #E287F8
triadic
#AA87F8 #F8AA87 #87F8AA
tetradic
#AA87F8 #F8879D #D5F887 #87F8E2
square
#AA87F8 #F8879D #D5F887 #87F8E2
split-complementary
#AA87F8 #F8E287 #9DF887
monochromatic
#5813F1 #814DF5 #AA87F8 #D3C1FB #EBE2FD

Accessibility & contrast

On white

2.79
#AA87F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.53
#AA87F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87F8
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87F8#FFFFFF#000000##000000
##AA87F81.002.797.537.53
#FFFFFF2.791.0021.0021.00
#0000007.5321.001.001.00
##0000007.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#639BFC
Deuteranopia (green-blind)
#6999F5
Tritanopia (blue-blind)
#999CB4
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #aa87f8;
/* rgb */ color: rgb(170, 135, 248);
/* oklch */ color: oklch(70.4% 0.163 296.2);
Tailwind
colors: {
  custom: {
    50: '#c6aafb',
    500: '#aa87f8',
    950: '#000000',
  },
}
SCSS
$custom: #aa87f8;
$custom-light: #c6aafb;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87f8",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 258.584,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.70362,
    "c": 0.16287,
    "h": 296.2
  },
  "luminance": 0.32651
}

Semantic roles & 50–950 ramp

primary
#AA87F8
secondary
#ECF5D6
accent
#E6009E
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AA87F8

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

Preview Lab → · Contrast checker → · Palette generator →

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