#AA87DF#AA87DF

#AA87DF is a light, vivid violet. Relative luminance 0.312; OKLCH L 69.1% C 0.131 H 301.4°. Best body text is #000000 at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#AA87DF
RGBrgb(170, 135, 223)
HSLhsl(264, 58%, 70%)
HSVhsv(264, 39%, 87%)
CMYKcmyk(23.8%, 39.5%, 0%, 12.5%)
CIE-LABlab(62.68, 31.01, -40.02)
CIE-LCHlch(62.68, 50.63, 307.77°)
OKLaboklab(69.07% 0.068 -0.1114)
OKLCHoklch(69.07% 0.131 301.4)
XYZxyz(38.5579, 31.2016, 73.7889)
Luminance0.3120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87DF #BCDF87
analogous
#8790DF #AA87DF #D687DF
triadic
#AA87DF #DFAA87 #87DFAA
tetradic
#AA87DF #DF8790 #BCDF87 #87DFD6
square
#AA87DF #DF8790 #BCDF87 #87DFD6
split-complementary
#AA87DF #DFD687 #90DF87
monochromatic
#6832BA #8857D2 #AA87DF #CCB7EC #EEE7F9

Accessibility & contrast

On white

2.90
#AA87DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.24
#AA87DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87DF
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87DF#FFFFFF#000000##000000
##AA87DF1.002.907.247.24
#FFFFFF2.901.0021.0021.00
#0000007.2421.001.001.00
##0000007.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7197E2
Deuteranopia (green-blind)
#7897DD
Tritanopia (blue-blind)
#A196A8
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #aa87df;
/* rgb */ color: rgb(170, 135, 223);
/* oklch */ color: oklch(69.1% 0.131 301.4);
Tailwind
colors: {
  custom: {
    50: '#c5aae9',
    500: '#aa87df',
    950: '#000000',
  },
}
SCSS
$custom: #aa87df;
$custom-light: #c5aae9;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87df",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 223
  },
  "hsl": {
    "h": 263.864,
    "s": 57.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.69065,
    "c": 0.13053,
    "h": 301.4
  },
  "luminance": 0.31202
}

Semantic roles & 50–950 ramp

primary
#AA87DF
secondary
#E3EDD5
accent
#C52084
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AA87DF

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

Preview Lab → · Contrast checker → · Palette generator →

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