#A786FD#A786FD

#A786FD is a light, vivid violet. Relative luminance 0.324; OKLCH L 70.2% C 0.171 H 294.4°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#A786FD
RGBrgb(167, 134, 253)
HSLhsl(257, 97%, 76%)
HSVhsv(257, 47%, 99%)
CMYKcmyk(34%, 47%, 0%, 0.8%)
CIE-LABlab(63.64, 38.14, -55.09)
CIE-LCHlch(63.64, 67.01, 304.69°)
OKLaboklab(70.2% 0.0704 -0.1553)
OKLCHoklch(70.2% 0.171 294.4)
XYZxyz(42.1865, 32.3568, 96.9323)
Luminance0.3236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A786FD #DCFD86
analogous
#86A0FD #A786FD #E386FD
triadic
#A786FD #FDA786 #86FDA7
tetradic
#A786FD #FD86A0 #DCFD86 #86FDE3
square
#A786FD #FD86A0 #DCFD86 #86FDE3
split-complementary
#A786FD #FDE386 #A0FD86
monochromatic
#4F0EFB #7B4AFC #A786FD #D3C2FE #E9E1FF

Accessibility & contrast

On white

2.81
#A786FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.47
#A786FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A786FD
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A786FD#FFFFFF#000000##000000
##A786FD1.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9BFF
Deuteranopia (green-blind)
#6298FA
Tritanopia (blue-blind)
#939DB6
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #a786fd;
/* rgb */ color: rgb(167, 134, 253);
/* oklch */ color: oklch(70.2% 0.171 294.4);
Tailwind
colors: {
  custom: {
    50: '#c4aafe',
    500: '#a786fd',
    950: '#000000',
  },
}
SCSS
$custom: #a786fd;
$custom-light: #c4aafe;
$custom-dark: #000000;
JSON
{
  "hex": "#a786fd",
  "rgb": {
    "r": 167,
    "g": 134,
    "b": 253
  },
  "hsl": {
    "h": 256.639,
    "s": 96.748,
    "l": 75.882
  },
  "oklch": {
    "l": 0.70201,
    "c": 0.17052,
    "h": 294.4
  },
  "luminance": 0.32358
}

Semantic roles & 50–950 ramp

primary
#A786FD
secondary
#EDF7D4
accent
#E600A6
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #A786FD

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

Preview Lab → · Contrast checker → · Palette generator →

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