#AA87F6#AA87F6

#AA87F6 is a light, vivid violet. Relative luminance 0.325; OKLCH L 70.3% C 0.160 H 296.6°. Best body text is #000000 at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#AA87F6
RGBrgb(170, 135, 246)
HSLhsl(259, 86%, 75%)
HSVhsv(259, 45%, 96%)
CMYKcmyk(30.9%, 45.1%, 0%, 3.5%)
CIE-LABlab(63.78, 36.59, -51.01)
CIE-LCHlch(63.78, 62.78, 305.65°)
OKLaboklab(70.25% 0.0718 -0.1433)
OKLCHoklch(70.25% 0.16 296.6)
XYZxyz(41.8720, 32.5273, 91.2433)
Luminance0.3253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87F6 #D3F687
analogous
#879CF6 #AA87F6 #E287F6
triadic
#AA87F6 #F6AA87 #87F6AA
tetradic
#AA87F6 #F6879C #D3F687 #87F6E2
square
#AA87F6 #F6879C #D3F687 #87F6E2
split-complementary
#AA87F6 #F6E287 #9CF687
monochromatic
#5915ED #824EF2 #AA87F6 #D2C0FA #EBE3FD

Accessibility & contrast

On white

2.80
#AA87F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.51
#AA87F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87F6
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87F6#FFFFFF#000000##000000
##AA87F61.002.807.517.51
#FFFFFF2.801.0021.0021.00
#0000007.5121.001.001.00
##0000007.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#649BFA
Deuteranopia (green-blind)
#6B99F3
Tritanopia (blue-blind)
#9A9BB3
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #aa87f6;
/* rgb */ color: rgb(170, 135, 246);
/* oklch */ color: oklch(70.3% 0.160 296.6);
Tailwind
colors: {
  custom: {
    50: '#c6aaf9',
    500: '#aa87f6',
    950: '#000000',
  },
}
SCSS
$custom: #aa87f6;
$custom-light: #c6aaf9;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87f6",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 246
  },
  "hsl": {
    "h": 258.919,
    "s": 86.047,
    "l": 74.706
  },
  "oklch": {
    "l": 0.70253,
    "c": 0.1603,
    "h": 296.6
  },
  "luminance": 0.32528
}

Semantic roles & 50–950 ramp

primary
#AA87F6
secondary
#EBF5D6
accent
#E3039C
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AA87F6

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

Preview Lab → · Contrast checker → · Palette generator →

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