#A87AF5#A87AF5

#A87AF5 is a light, vivid violet. Relative luminance 0.288; OKLCH L 67.8% C 0.178 H 298.8°. Best body text is #000000 at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#A87AF5
RGBrgb(168, 122, 245)
HSLhsl(262, 86%, 72%)
HSVhsv(262, 50%, 96%)
CMYKcmyk(31.4%, 50.2%, 0%, 3.9%)
CIE-LABlab(60.64, 43.06, -55.46)
CIE-LCHlch(60.64, 70.22, 307.83°)
OKLaboklab(67.84% 0.0861 -0.1564)
OKLCHoklch(67.84% 0.178 298.8)
XYZxyz(39.5854, 28.8361, 89.8489)
Luminance0.2884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87AF5 #C7F57A
analogous
#7A8AF5 #A87AF5 #E67AF5
triadic
#A87AF5 #F5A87A #7AF5A8
tetradic
#A87AF5 #F57A8A #C7F57A #7AF5E6
square
#A87AF5 #F57A8A #C7F57A #7AF5E6
split-complementary
#A87AF5 #F5E67A #8AF57A
monochromatic
#6011E3 #8341F1 #A87AF5 #CDB3F9 #ECE3FD

Accessibility & contrast

On white

3.10
#A87AF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.77
#A87AF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A87AF5
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87AF5#FFFFFF#000000##000000
##A87AF51.003.106.776.77
#FFFFFF3.101.0021.0021.00
#0000006.7721.001.001.00
##0000006.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F92F9
Deuteranopia (green-blind)
#5A91F2
Tritanopia (blue-blind)
#9891AC
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #a87af5;
/* rgb */ color: rgb(168, 122, 245);
/* oklch */ color: oklch(67.8% 0.178 298.8);
Tailwind
colors: {
  custom: {
    50: '#c5a1f9',
    500: '#a87af5',
    950: '#000000',
  },
}
SCSS
$custom: #a87af5;
$custom-light: #c5a1f9;
$custom-dark: #000000;
JSON
{
  "hex": "#a87af5",
  "rgb": {
    "r": 168,
    "g": 122,
    "b": 245
  },
  "hsl": {
    "h": 262.439,
    "s": 86.014,
    "l": 71.961
  },
  "oklch": {
    "l": 0.67844,
    "c": 0.17849,
    "h": 298.8
  },
  "luminance": 0.28836
}

Semantic roles & 50–950 ramp

primary
#A87AF5
secondary
#E9F5D6
accent
#E3038F
background
#FCFAFF
surface
#F8F3FF
border
#D1CDD7
text
#130F17
muted
#827F85

Preview Lab

Preview with #A87AF5

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

Preview Lab → · Contrast checker → · Palette generator →

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