#AA87DB#AA87DB

#AA87DB is a light, vivid violet. Relative luminance 0.310; OKLCH L 68.9% C 0.125 H 302.4°. Best body text is #000000 at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#AA87DB
RGBrgb(170, 135, 219)
HSLhsl(265, 54%, 69%)
HSVhsv(265, 38%, 86%)
CMYKcmyk(22.4%, 38.4%, 0%, 14.1%)
CIE-LABlab(62.50, 30.07, -38.08)
CIE-LCHlch(62.50, 48.52, 308.30°)
OKLaboklab(68.87% 0.0672 -0.1058)
OKLCHoklch(68.87% 0.125 302.4)
XYZxyz(38.0250, 30.9885, 70.9822)
Luminance0.3099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87DB #B8DB87
analogous
#878EDB #AA87DB #D487DB
triadic
#AA87DB #DBAA87 #87DBAA
tetradic
#AA87DB #DB878E #B8DB87 #87DBD4
square
#AA87DB #DB878E #B8DB87 #87DBD4
split-complementary
#AA87DB #DBD487 #8EDB87
monochromatic
#6935B2 #8958CD #AA87DB #CBB6E9 #EDE5F7

Accessibility & contrast

On white

2.92
#AA87DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.20
#AA87DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87DB
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87DB#FFFFFF#000000##000000
##AA87DB1.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7396DE
Deuteranopia (green-blind)
#7A97D9
Tritanopia (blue-blind)
#A295A7
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #aa87db;
/* rgb */ color: rgb(170, 135, 219);
/* oklch */ color: oklch(68.9% 0.125 302.4);
Tailwind
colors: {
  custom: {
    50: '#c5aae6',
    500: '#aa87db',
    950: '#000000',
  },
}
SCSS
$custom: #aa87db;
$custom-light: #c5aae6;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87db",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 219
  },
  "hsl": {
    "h": 265,
    "s": 53.846,
    "l": 69.412
  },
  "oklch": {
    "l": 0.6887,
    "c": 0.12533,
    "h": 302.4
  },
  "luminance": 0.30988
}

Semantic roles & 50–950 ramp

primary
#AA87DB
secondary
#E1EBD3
accent
#C12480
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AA87DB

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

Preview Lab → · Contrast checker → · Palette generator →

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