#AA87F2#AA87F2

#AA87F2 is a light, vivid violet. Relative luminance 0.323; OKLCH L 70.0% C 0.155 H 297.3°. Best body text is #000000 at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#AA87F2
RGBrgb(170, 135, 242)
HSLhsl(260, 80%, 74%)
HSVhsv(260, 44%, 95%)
CMYKcmyk(29.8%, 44.2%, 0%, 5.1%)
CIE-LABlab(63.58, 35.60, -49.13)
CIE-LCHlch(63.58, 60.67, 305.93°)
OKLaboklab(70.04% 0.0712 -0.1378)
OKLCHoklch(70.04% 0.155 297.3)
XYZxyz(41.2647, 32.2844, 88.0447)
Luminance0.3229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87F2 #CFF287
analogous
#879AF2 #AA87F2 #E087F2
triadic
#AA87F2 #F2AA87 #87F2AA
tetradic
#AA87F2 #F2879A #CFF287 #87F2E0
square
#AA87F2 #F2879A #CFF287 #87F2E0
split-complementary
#AA87F2 #F2E087 #9AF287
monochromatic
#5C19E6 #8350EC #AA87F2 #D1BEF8 #EBE3FC

Accessibility & contrast

On white

2.82
#AA87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.46
#AA87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87F2
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87F2#FFFFFF#000000##000000
##AA87F21.002.827.467.46
#FFFFFF2.821.0021.0021.00
#0000007.4621.001.001.00
##0000007.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#679AF6
Deuteranopia (green-blind)
#6D99EF
Tritanopia (blue-blind)
#9B9AB1
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #aa87f2;
/* rgb */ color: rgb(170, 135, 242);
/* oklch */ color: oklch(70.0% 0.155 297.3);
Tailwind
colors: {
  custom: {
    50: '#c6aaf7',
    500: '#aa87f2',
    950: '#000000',
  },
}
SCSS
$custom: #aa87f2;
$custom-light: #c6aaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87f2",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 259.626,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.70039,
    "c": 0.15514,
    "h": 297.3
  },
  "luminance": 0.32285
}

Semantic roles & 50–950 ramp

primary
#AA87F2
secondary
#EAF4D7
accent
#DD0997
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AA87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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