#AA87F1#AA87F1

#AA87F1 is a light, vivid violet. Relative luminance 0.322; OKLCH L 70.0% C 0.154 H 297.5°. Best body text is #000000 at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#AA87F1
RGBrgb(170, 135, 241)
HSLhsl(260, 79%, 74%)
HSVhsv(260, 44%, 95%)
CMYKcmyk(29.5%, 44%, 0%, 5.5%)
CIE-LABlab(63.53, 35.35, -48.65)
CIE-LCHlch(63.53, 60.14, 306.00°)
OKLaboklab(69.99% 0.0711 -0.1365)
OKLCHoklch(69.99% 0.154 297.5)
XYZxyz(41.1149, 32.2244, 87.2559)
Luminance0.3222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA87F1 #CEF187
analogous
#8799F1 #AA87F1 #DF87F1
triadic
#AA87F1 #F1AA87 #87F1AA
tetradic
#AA87F1 #F18799 #CEF187 #87F1DF
square
#AA87F1 #F18799 #CEF187 #87F1DF
split-complementary
#AA87F1 #F1DF87 #99F187
monochromatic
#5D1AE3 #8350EB #AA87F1 #D1BEF7 #ECE4FC

Accessibility & contrast

On white

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

On black

7.44
#AA87F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA87F1
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA87F1#FFFFFF#000000##000000
##AA87F11.002.827.447.44
#FFFFFF2.821.0021.0021.00
#0000007.4421.001.001.00
##0000007.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#679AF5
Deuteranopia (green-blind)
#6E99EE
Tritanopia (blue-blind)
#9B9AB0
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #aa87f1;
/* rgb */ color: rgb(170, 135, 241);
/* oklch */ color: oklch(70.0% 0.154 297.5);
Tailwind
colors: {
  custom: {
    50: '#c6aaf6',
    500: '#aa87f1',
    950: '#000000',
  },
}
SCSS
$custom: #aa87f1;
$custom-light: #c6aaf6;
$custom-dark: #000000;
JSON
{
  "hex": "#aa87f1",
  "rgb": {
    "r": 170,
    "g": 135,
    "b": 241
  },
  "hsl": {
    "h": 259.811,
    "s": 79.104,
    "l": 73.725
  },
  "oklch": {
    "l": 0.69985,
    "c": 0.15385,
    "h": 297.5
  },
  "luminance": 0.32225
}

Semantic roles & 50–950 ramp

primary
#AA87F1
secondary
#EAF4D7
accent
#DB0A96
background
#FCFAFF
surface
#F8F4FE
border
#D1CED6
text
#131017
muted
#827F85

Preview Lab

Preview with #AA87F1

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

Preview Lab → · Contrast checker → · Palette generator →

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