#A87BF5#A87BF5

#A87BF5 is a light, vivid violet. Relative luminance 0.291; OKLCH L 68.0% C 0.177 H 298.6°. Best body text is #000000 at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#A87BF5
RGBrgb(168, 123, 245)
HSLhsl(262, 86%, 72%)
HSVhsv(262, 50%, 96%)
CMYKcmyk(31.4%, 49.8%, 0%, 3.9%)
CIE-LABlab(60.85, 42.51, -55.11)
CIE-LCHlch(60.85, 69.60, 307.65°)
OKLaboklab(68.01% 0.0848 -0.1554)
OKLCHoklch(68.01% 0.177 298.6)
XYZxyz(39.7089, 29.0829, 89.8900)
Luminance0.2908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87BF5 #C8F57B
analogous
#7B8BF5 #A87BF5 #E57BF5
triadic
#A87BF5 #F5A87B #7BF5A8
tetradic
#A87BF5 #F57B8B #C8F57B #7BF5E5
square
#A87BF5 #F57B8B #C8F57B #7BF5E5
split-complementary
#A87BF5 #F5E57B #8BF57B
monochromatic
#5F11E4 #8342F1 #A87BF5 #CDB4F9 #ECE3FD

Accessibility & contrast

On white

3.08
#A87BF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.82
#A87BF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A87BF5
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87BF5#FFFFFF#000000##000000
##A87BF51.003.086.826.82
#FFFFFF3.081.0021.0021.00
#0000006.8221.001.001.00
##0000006.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5093F9
Deuteranopia (green-blind)
#5C92F2
Tritanopia (blue-blind)
#9892AD
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #a87bf5;
/* rgb */ color: rgb(168, 123, 245);
/* oklch */ color: oklch(68.0% 0.177 298.6);
Tailwind
colors: {
  custom: {
    50: '#c5a2f9',
    500: '#a87bf5',
    950: '#000000',
  },
}
SCSS
$custom: #a87bf5;
$custom-light: #c5a2f9;
$custom-dark: #000000;
JSON
{
  "hex": "#a87bf5",
  "rgb": {
    "r": 168,
    "g": 123,
    "b": 245
  },
  "hsl": {
    "h": 262.131,
    "s": 85.915,
    "l": 72.157
  },
  "oklch": {
    "l": 0.68006,
    "c": 0.17699,
    "h": 298.6
  },
  "luminance": 0.29083
}

Semantic roles & 50–950 ramp

primary
#A87BF5
secondary
#EAF5D6
accent
#E20390
background
#FCFAFF
surface
#F8F3FF
border
#D1CDD7
text
#130F17
muted
#827F85

Preview Lab

Preview with #A87BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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