#AA87CB#AA87CB

#AA87CB is a light, moderate violet. Relative luminance 0.302; OKLCH L 68.1% C 0.105 H 307.4°. Best body text is #000000 at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#AA87CB
RGBrgb(170, 135, 203)
HSLhsl(271, 40%, 66%)
HSVhsv(271, 33%, 80%)
CMYKcmyk(16.3%, 33.5%, 0%, 20.4%)
CIE-LABlab(61.81, 26.42, -30.18)
CIE-LCHlch(61.81, 40.11, 311.19°)
OKLaboklab(68.13% 0.0635 -0.0831)
OKLCHoklch(68.13% 0.105 307.4)
XYZxyz(36.0190, 30.1861, 60.4173)
Luminance0.3019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87CB #A8CB87
analogous
#8887CB #AA87CB #CB87CA
triadic
#AA87CB #CBAA87 #87CBAA
tetradic
#AA87CB #CB8887 #A8CB87 #87CACB
square
#AA87CB #CB8887 #A8CB87 #87CACB
split-complementary
#AA87CB #CACB87 #87CB88
monochromatic
#6D4196 #8C5CB8 #AA87CB #C8B2DE #E6DCF0

Accessibility & contrast

On white

2.98
#AA87CB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.04
#AA87CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87CB
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87CB#FFFFFF#000000##000000
##AA87CB1.002.987.047.04
#FFFFFF2.981.0021.0021.00
#0000007.0421.001.001.00
##0000007.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A94CE
Deuteranopia (green-blind)
#8196C9
Tritanopia (blue-blind)
#A691A0
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #aa87cb;
/* rgb */ color: rgb(170, 135, 203);
/* oklch */ color: oklch(68.1% 0.105 307.4);
Tailwind
colors: {
  custom: {
    50: '#c4aadb',
    500: '#aa87cb',
    950: '#000000',
  },
}
SCSS
$custom: #aa87cb;
$custom-light: #c4aadb;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87cb",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 203
  },
  "hsl": {
    "h": 270.882,
    "s": 39.535,
    "l": 66.275
  },
  "oklch": {
    "l": 0.68126,
    "c": 0.10465,
    "h": 307.4
  },
  "luminance": 0.30186
}

Semantic roles & 50–950 ramp

primary
#AA87CB
secondary
#D7E2CC
accent
#B33371
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#131015
muted
#827F83

Preview Lab

Preview with #AA87CB

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

Preview Lab → · Contrast checker → · Palette generator →

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