#A87AFB#A87AFB

#A87AFB is a light, vivid violet. Relative luminance 0.292; OKLCH L 68.2% C 0.186 H 297.7°. Best body text is #000000 at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#A87AFB
RGBrgb(168, 122, 251)
HSLhsl(261, 94%, 73%)
HSVhsv(261, 51%, 98%)
CMYKcmyk(33.1%, 51.4%, 0%, 1.6%)
CIE-LABlab(60.97, 44.55, -58.25)
CIE-LCHlch(60.97, 73.33, 307.41°)
OKLaboklab(68.19% 0.0865 -0.1645)
OKLCHoklch(68.19% 0.186 297.7)
XYZxyz(40.5163, 29.2084, 94.7513)
Luminance0.2921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87AFB #CDFB7A
analogous
#7A8CFB #A87AFB #E87AFB
triadic
#A87AFB #FBA87A #7AFBA8
tetradic
#A87AFB #FB7A8C #CDFB7A #7AFBE8
square
#A87AFB #FB7A8C #CDFB7A #7AFBE8
split-complementary
#A87AFB #FBE87A #8CFB7A
monochromatic
#5B07F3 #813FF9 #A87AFB #CFB5FD #ECE1FE

Accessibility & contrast

On white

3.07
#A87AFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.84
#A87AFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A87AFB
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87AFB#FFFFFF#000000##000000
##A87AFB1.003.076.846.84
#FFFFFF3.071.0021.0021.00
#0000006.8421.001.001.00
##0000006.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4993FF
Deuteranopia (green-blind)
#5592F8
Tritanopia (blue-blind)
#9693AF
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #a87afb;
/* rgb */ color: rgb(168, 122, 251);
/* oklch */ color: oklch(68.2% 0.186 297.7);
Tailwind
colors: {
  custom: {
    50: '#c5a1fd',
    500: '#a87afb',
    950: '#000000',
  },
}
SCSS
$custom: #a87afb;
$custom-light: #c5a1fd;
$custom-dark: #000000;
JSON
{
  "hex": "#a87afb",
  "rgb": {
    "r": 168,
    "g": 122,
    "b": 251
  },
  "hsl": {
    "h": 261.395,
    "s": 94.161,
    "l": 73.137
  },
  "oklch": {
    "l": 0.68194,
    "c": 0.18588,
    "h": 297.7
  },
  "luminance": 0.29209
}

Semantic roles & 50–950 ramp

primary
#A87AFB
secondary
#EAF6D5
accent
#E60094
background
#FCFAFF
surface
#F8F3FF
border
#D1CDD7
text
#130F18
muted
#827F86

Preview Lab

Preview with #A87AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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