#AA87BA#AA87BA

#AA87BA is a light, moderate purple. Relative luminance 0.294; OKLCH L 67.4% C 0.083 H 315.0°. Best body text is #000000 at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#AA87BA
RGBrgb(170, 135, 186)
HSLhsl(281, 27%, 63%)
HSVhsv(281, 27%, 73%)
CMYKcmyk(8.6%, 27.4%, 0%, 27.1%)
CIE-LABlab(61.15, 22.75, -21.62)
CIE-LCHlch(61.15, 31.38, 316.46°)
OKLaboklab(67.4% 0.0589 -0.0589)
OKLCHoklch(67.4% 0.083 315)
XYZxyz(34.1031, 29.4197, 50.3269)
Luminance0.2942 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87BA #97BA87
analogous
#9087BA #AA87BA #BA87B0
triadic
#AA87BA #BAAA87 #87BAAA
tetradic
#AA87BA #BA9087 #97BA87 #87B0BA
square
#AA87BA #BA9087 #97BA87 #87B0BA
split-complementary
#AA87BA #B0BA87 #87BA90
monochromatic
#6D497E #8E60A4 #AA87BA #C6AED0 #E1D5E7

Accessibility & contrast

On white

3.05
#AA87BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.88
#AA87BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA87BA
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87BA#FFFFFF#000000##000000
##AA87BA1.003.056.886.88
#FFFFFF3.051.0021.0021.00
#0000006.8821.001.001.00
##0000006.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8091BC
Deuteranopia (green-blind)
#8795B8
Tritanopia (blue-blind)
#A98D99
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #aa87ba;
/* rgb */ color: rgb(170, 135, 186);
/* oklch */ color: oklch(67.4% 0.083 315.0);
Tailwind
colors: {
  custom: {
    50: '#c3aace',
    500: '#aa87ba',
    950: '#000000',
  },
}
SCSS
$custom: #aa87ba;
$custom-light: #c3aace;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87ba",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 186
  },
  "hsl": {
    "h": 281.176,
    "s": 26.984,
    "l": 62.941
  },
  "oklch": {
    "l": 0.67399,
    "c": 0.08328,
    "h": 315
  },
  "luminance": 0.29419
}

Semantic roles & 50–950 ramp

primary
#AA87BA
secondary
#CBD8C5
accent
#A64060
background
#FCFAFC
surface
#F8F4F9
border
#D1CED2
text
#121013
muted
#817F82

Preview Lab

Preview with #AA87BA

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

Preview Lab → · Contrast checker → · Palette generator →

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