#A87AF8#A87AF8

#A87AF8 is a light, vivid violet. Relative luminance 0.290; OKLCH L 68.0% C 0.182 H 298.3°. Best body text is #000000 at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#A87AF8
RGBrgb(168, 122, 248)
HSLhsl(262, 90%, 73%)
HSVhsv(262, 51%, 97%)
CMYKcmyk(32.3%, 50.8%, 0%, 2.7%)
CIE-LABlab(60.80, 43.81, -56.86)
CIE-LCHlch(60.80, 71.77, 307.61°)
OKLaboklab(68.02% 0.0863 -0.1605)
OKLCHoklch(68.02% 0.182 298.3)
XYZxyz(40.0471, 29.0208, 92.2804)
Luminance0.2902 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87AF8 #CAF87A
analogous
#7A8BF8 #A87AF8 #E77AF8
triadic
#A87AF8 #F8A87A #7AF8A8
tetradic
#A87AF8 #F87A8B #CAF87A #7AF8E7
square
#A87AF8 #F87A8B #CAF87A #7AF8E7
split-complementary
#A87AF8 #F8E77A #8BF87A
monochromatic
#5E0CEB #8240F5 #A87AF8 #CEB4FB #ECE2FD

Accessibility & contrast

On white

3.09
#A87AF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.80
#A87AF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A87AF8
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87AF8#FFFFFF#000000##000000
##A87AF81.003.096.806.80
#FFFFFF3.091.0021.0021.00
#0000006.8021.001.001.00
##0000006.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C93FC
Deuteranopia (green-blind)
#5891F5
Tritanopia (blue-blind)
#9792AE
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #a87af8;
/* rgb */ color: rgb(168, 122, 248);
/* oklch */ color: oklch(68.0% 0.182 298.3);
Tailwind
colors: {
  custom: {
    50: '#c5a1fb',
    500: '#a87af8',
    950: '#000000',
  },
}
SCSS
$custom: #a87af8;
$custom-light: #c5a1fb;
$custom-dark: #000000;
JSON
{
  "hex": "#a87af8",
  "rgb": {
    "r": 168,
    "g": 122,
    "b": 248
  },
  "hsl": {
    "h": 261.905,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.68018,
    "c": 0.18219,
    "h": 298.3
  },
  "luminance": 0.29021
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A87AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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