#AA87FD#AA87FD

#AA87FD is a light, vivid violet. Relative luminance 0.330; OKLCH L 70.6% C 0.169 H 295.4°. Best body text is #000000 at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#AA87FD
RGBrgb(170, 135, 253)
HSLhsl(258, 97%, 76%)
HSVhsv(258, 47%, 99%)
CMYKcmyk(32.8%, 46.6%, 0%, 0.8%)
CIE-LABlab(64.13, 38.34, -54.29)
CIE-LCHlch(64.13, 66.46, 305.23°)
OKLaboklab(70.64% 0.0726 -0.1529)
OKLCHoklch(70.64% 0.169 295.4)
XYZxyz(42.9667, 32.9652, 97.0086)
Luminance0.3297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87FD #DAFD87
analogous
#879FFD #AA87FD #E587FD
triadic
#AA87FD #FDAA87 #87FDAA
tetradic
#AA87FD #FD879F #DAFD87 #87FDE5
square
#AA87FD #FD879F #DAFD87 #87FDE5
split-complementary
#AA87FD #FDE587 #9FFD87
monochromatic
#550FFB #7F4BFC #AA87FD #D5C3FE #EAE1FE

Accessibility & contrast

On white

2.77
#AA87FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.59
#AA87FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87FD
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87FD#FFFFFF#000000##000000
##AA87FD1.002.777.597.59
#FFFFFF2.771.0021.0021.00
#0000007.5921.001.001.00
##0000007.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9CFF
Deuteranopia (green-blind)
#669AFA
Tritanopia (blue-blind)
#979DB6
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #aa87fd;
/* rgb */ color: rgb(170, 135, 253);
/* oklch */ color: oklch(70.6% 0.169 295.4);
Tailwind
colors: {
  custom: {
    50: '#c6aafe',
    500: '#aa87fd',
    950: '#000000',
  },
}
SCSS
$custom: #aa87fd;
$custom-light: #c6aafe;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87fd",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 253
  },
  "hsl": {
    "h": 257.797,
    "s": 96.721,
    "l": 76.078
  },
  "oklch": {
    "l": 0.70637,
    "c": 0.16927,
    "h": 295.4
  },
  "luminance": 0.32966
}

Semantic roles & 50–950 ramp

primary
#AA87FD
secondary
#EDF7D4
accent
#E600A1
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AA87FD

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

Preview Lab → · Contrast checker → · Palette generator →

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