#A87BF8#A87BF8

#A87BF8 is a light, vivid violet. Relative luminance 0.293; OKLCH L 68.2% C 0.181 H 298.1°. Best body text is #000000 at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#A87BF8
RGBrgb(168, 123, 248)
HSLhsl(262, 90%, 73%)
HSVhsv(262, 50%, 97%)
CMYKcmyk(32.3%, 50.4%, 0%, 2.7%)
CIE-LABlab(61.02, 43.26, -56.51)
CIE-LCHlch(61.02, 71.16, 307.43°)
OKLaboklab(68.18% 0.085 -0.1594)
OKLCHoklch(68.18% 0.181 298.1)
XYZxyz(40.1706, 29.2676, 92.3216)
Luminance0.2927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87BF8 #CBF87B
analogous
#7B8CF8 #A87BF8 #E67BF8
triadic
#A87BF8 #F8A87B #7BF8A8
tetradic
#A87BF8 #F87B8C #CBF87B #7BF8E6
square
#A87BF8 #F87B8C #CBF87B #7BF8E6
split-complementary
#A87BF8 #F8E67B #8CF87B
monochromatic
#5D0DEC #8241F5 #A87BF8 #CEB5FB #ECE2FD

Accessibility & contrast

On white

3.06
#A87BF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.85
#A87BF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A87BF8
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87BF8#FFFFFF#000000##000000
##A87BF81.003.066.856.85
#FFFFFF3.061.0021.0021.00
#0000006.8521.001.001.00
##0000006.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E93FC
Deuteranopia (green-blind)
#5992F5
Tritanopia (blue-blind)
#9793AE
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #a87bf8;
/* rgb */ color: rgb(168, 123, 248);
/* oklch */ color: oklch(68.2% 0.181 298.1);
Tailwind
colors: {
  custom: {
    50: '#c5a2fb',
    500: '#a87bf8',
    950: '#000000',
  },
}
SCSS
$custom: #a87bf8;
$custom-light: #c5a2fb;
$custom-dark: #000000;
JSON
{
  "hex": "#a87bf8",
  "rgb": {
    "r": 168,
    "g": 123,
    "b": 248
  },
  "hsl": {
    "h": 261.6,
    "s": 89.928,
    "l": 72.745
  },
  "oklch": {
    "l": 0.68179,
    "c": 0.1807,
    "h": 298.1
  },
  "luminance": 0.29268
}

Semantic roles & 50–950 ramp

primary
#A87BF8
secondary
#EAF6D5
accent
#E60093
background
#FCFAFF
surface
#F8F3FF
border
#D1CDD7
text
#130F17
muted
#827F85

Preview Lab

Preview with #A87BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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