#A87AFE#A87AFE

#A87AFE is a light, vivid violet. Relative luminance 0.294; OKLCH L 68.4% C 0.190 H 297.2°. Best body text is #000000 at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#A87AFE
RGBrgb(168, 122, 254)
HSLhsl(261, 99%, 74%)
HSVhsv(261, 52%, 100%)
CMYKcmyk(33.9%, 52%, 0%, 0.4%)
CIE-LABlab(61.13, 45.30, -59.63)
CIE-LCHlch(61.13, 74.89, 307.23°)
OKLaboklab(68.37% 0.0867 -0.1686)
OKLCHoklch(68.37% 0.19 297.2)
XYZxyz(40.9929, 29.3991, 97.2616)
Luminance0.2940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87AFE #D0FE7A
analogous
#7A8EFE #A87AFE #EA7AFE
triadic
#A87AFE #FEA87A #7AFEA8
tetradic
#A87AFE #FE7A8E #D0FE7A #7AFEEA
square
#A87AFE #FE7A8E #D0FE7A #7AFEEA
split-complementary
#A87AFE #FEEA7A #8EFE7A
monochromatic
#5902FC #803DFE #A87AFE #D0B7FE #EBE1FF

Accessibility & contrast

On white

3.05
#A87AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.88
#A87AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A87AFE
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87AFE#FFFFFF#000000##000000
##A87AFE1.003.056.886.88
#FFFFFF3.051.0021.0021.00
#0000006.8821.001.001.00
##0000006.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4694FF
Deuteranopia (green-blind)
#5292FB
Tritanopia (blue-blind)
#9594B1
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #a87afe;
/* rgb */ color: rgb(168, 122, 254);
/* oklch */ color: oklch(68.4% 0.190 297.2);
Tailwind
colors: {
  custom: {
    50: '#c6a1ff',
    500: '#a87afe',
    950: '#000000',
  },
}
SCSS
$custom: #a87afe;
$custom-light: #c6a1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#a87afe",
  "rgb": {
    "r": 168,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 260.909,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.68372,
    "c": 0.18956,
    "h": 297.2
  },
  "luminance": 0.294
}

Semantic roles & 50–950 ramp

primary
#A87AFE
secondary
#EBF7D4
accent
#E60096
background
#FCFAFF
surface
#F8F3FF
border
#D1CDD7
text
#130F18
muted
#827F86

Preview Lab

Preview with #A87AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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