#AA87CE#AA87CE

#AA87CE is a light, moderate violet. Relative luminance 0.303; OKLCH L 68.3% C 0.109 H 306.3°. Best body text is #000000 at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#AA87CE
RGBrgb(170, 135, 206)
HSLhsl(270, 42%, 67%)
HSVhsv(270, 34%, 81%)
CMYKcmyk(17.5%, 34.5%, 0%, 19.2%)
CIE-LABlab(61.94, 27.09, -31.68)
CIE-LCHlch(61.94, 41.68, 310.54°)
OKLaboklab(68.26% 0.0643 -0.0874)
OKLCHoklch(68.26% 0.109 306.3)
XYZxyz(36.3799, 30.3305, 62.3184)
Luminance0.3033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87CE #ABCE87
analogous
#8788CE #AA87CE #CD87CE
triadic
#AA87CE #CEAA87 #87CEAA
tetradic
#AA87CE #CE8788 #ABCE87 #87CECD
square
#AA87CE #CE8788 #ABCE87 #87CECD
split-complementary
#AA87CE #CECD87 #88CE87
monochromatic
#6D3F9B #8B5CBC #AA87CE #C9B2E0 #E8DEF1

Accessibility & contrast

On white

2.97
#AA87CE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.07
#AA87CE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87CE
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87CE#FFFFFF#000000##000000
##AA87CE1.002.977.077.07
#FFFFFF2.971.0021.0021.00
#0000007.0721.001.001.00
##0000007.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7994D1
Deuteranopia (green-blind)
#8096CC
Tritanopia (blue-blind)
#A591A1
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #aa87ce;
/* rgb */ color: rgb(170, 135, 206);
/* oklch */ color: oklch(68.3% 0.109 306.3);
Tailwind
colors: {
  custom: {
    50: '#c4aadd',
    500: '#aa87ce',
    950: '#000000',
  },
}
SCSS
$custom: #aa87ce;
$custom-light: #c4aadd;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87ce",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 206
  },
  "hsl": {
    "h": 269.577,
    "s": 42.012,
    "l": 66.863
  },
  "oklch": {
    "l": 0.68261,
    "c": 0.10851,
    "h": 306.3
  },
  "luminance": 0.3033
}

Semantic roles & 50–950 ramp

primary
#AA87CE
secondary
#D9E4CD
accent
#B53074
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#131015
muted
#827F83

Preview Lab

Preview with #AA87CE

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

Preview Lab → · Contrast checker → · Palette generator →

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