#A786FE#A786FE

#A786FE is a light, vivid violet. Relative luminance 0.324; OKLCH L 70.3% C 0.172 H 294.2°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#A786FE
RGBrgb(167, 134, 254)
HSLhsl(257, 98%, 76%)
HSVhsv(257, 47%, 100%)
CMYKcmyk(34.3%, 47.2%, 0%, 0.4%)
CIE-LABlab(63.69, 38.39, -55.56)
CIE-LCHlch(63.69, 67.53, 304.65°)
OKLaboklab(70.26% 0.0705 -0.1567)
OKLCHoklch(70.26% 0.172 294.2)
XYZxyz(42.3463, 32.4206, 97.7735)
Luminance0.3242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A786FE #DDFE86
analogous
#86A1FE #A786FE #E386FE
triadic
#A786FE #FEA786 #86FEA7
tetradic
#A786FE #FE86A1 #DDFE86 #86FEE3
square
#A786FE #FE86A1 #DDFE86 #86FEE3
split-complementary
#A786FE #FEE386 #A1FE86
monochromatic
#4F0DFD #7B49FD #A786FE #D3C3FF #E9E1FF

Accessibility & contrast

On white

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

On black

7.48
#A786FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A786FE
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A786FE#FFFFFF#000000##000000
##A786FE1.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a786fe;
/* rgb */ color: rgb(167, 134, 254);
/* oklch */ color: oklch(70.3% 0.172 294.2);
Tailwind
colors: {
  custom: {
    50: '#c5aaff',
    500: '#a786fe',
    950: '#000000',
  },
}
SCSS
$custom: #a786fe;
$custom-light: #c5aaff;
$custom-dark: #000000;
JSON
{
  "hex": "#a786fe",
  "rgb": {
    "r": 167,
    "g": 134,
    "b": 254
  },
  "hsl": {
    "h": 256.5,
    "s": 98.361,
    "l": 76.078
  },
  "oklch": {
    "l": 0.70257,
    "c": 0.1718,
    "h": 294.2
  },
  "luminance": 0.32421
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A786FE

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

Preview Lab → · Contrast checker → · Palette generator →

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