#AA87CA#AA87CA

#AA87CA is a light, moderate violet. Relative luminance 0.301; OKLCH L 68.1% C 0.103 H 307.8°. Best body text is #000000 at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#AA87CA
RGBrgb(170, 135, 202)
HSLhsl(271, 39%, 66%)
HSVhsv(271, 33%, 79%)
CMYKcmyk(15.8%, 33.2%, 0%, 20.8%)
CIE-LABlab(61.77, 26.20, -29.69)
CIE-LCHlch(61.77, 39.59, 311.43°)
OKLaboklab(68.08% 0.0633 -0.0817)
OKLCHoklch(68.08% 0.103 307.8)
XYZxyz(35.9002, 30.1386, 59.7917)
Luminance0.3014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87CA #A7CA87
analogous
#8887CA #AA87CA #CA87C8
triadic
#AA87CA #CAAA87 #87CAAA
tetradic
#AA87CA #CA8887 #A7CA87 #87C8CA
square
#AA87CA #CA8887 #A7CA87 #87C8CA
split-complementary
#AA87CA #C8CA87 #87CA88
monochromatic
#6D4295 #8C5DB7 #AA87CA #C8B1DD #E6DCEF

Accessibility & contrast

On white

2.99
#AA87CA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.03
#AA87CA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87CA
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87CA#FFFFFF#000000##000000
##AA87CA1.002.997.037.03
#FFFFFF2.991.0021.0021.00
#0000007.0321.001.001.00
##0000007.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A94CD
Deuteranopia (green-blind)
#8296C8
Tritanopia (blue-blind)
#A6919F
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #aa87ca;
/* rgb */ color: rgb(170, 135, 202);
/* oklch */ color: oklch(68.1% 0.103 307.8);
Tailwind
colors: {
  custom: {
    50: '#c4aada',
    500: '#aa87ca',
    950: '#000000',
  },
}
SCSS
$custom: #aa87ca;
$custom-light: #c4aada;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87ca",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 202
  },
  "hsl": {
    "h": 271.343,
    "s": 38.728,
    "l": 66.078
  },
  "oklch": {
    "l": 0.68081,
    "c": 0.10337,
    "h": 307.8
  },
  "luminance": 0.30138
}

Semantic roles & 50–950 ramp

primary
#AA87CA
secondary
#D6E1CB
accent
#B23470
background
#FCFAFD
surface
#F8F4FA
border
#D1CED3
text
#131015
muted
#827F83

Preview Lab

Preview with #AA87CA

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

Preview Lab → · Contrast checker → · Palette generator →

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