#A786EF#A786EF

#A786EF is a light, vivid violet. Relative luminance 0.315; OKLCH L 69.4% C 0.152 H 296.7°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#A786EF
RGBrgb(167, 134, 239)
HSLhsl(259, 77%, 73%)
HSVhsv(259, 44%, 94%)
CMYKcmyk(30.1%, 43.9%, 0%, 6.3%)
CIE-LABlab(62.93, 34.62, -48.52)
CIE-LCHlch(62.93, 59.60, 305.51°)
OKLaboklab(69.43% 0.0686 -0.1361)
OKLCHoklch(69.43% 0.152 296.7)
XYZxyz(40.0376, 31.4972, 85.6148)
Luminance0.3150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A786EF #CEEF86
analogous
#8699EF #A786EF #DB86EF
triadic
#A786EF #EFA786 #86EFA7
tetradic
#A786EF #EF8699 #CEEF86 #86EFDB
square
#A786EF #EF8699 #CEEF86 #86EFDB
split-complementary
#A786EF #EFDB86 #99EF86
monochromatic
#5A1DDD #8050E8 #A786EF #CEBCF6 #EBE4FB

Accessibility & contrast

On white

2.88
#A786EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.30
#A786EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A786EF
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A786EF#FFFFFF#000000##000000
##A786EF1.002.887.307.30
#FFFFFF2.881.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6699F3
Deuteranopia (green-blind)
#6C97EC
Tritanopia (blue-blind)
#9899AF
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #a786ef;
/* rgb */ color: rgb(167, 134, 239);
/* oklch */ color: oklch(69.4% 0.152 296.7);
Tailwind
colors: {
  custom: {
    50: '#c4a9f5',
    500: '#a786ef',
    950: '#000000',
  },
}
SCSS
$custom: #a786ef;
$custom-light: #c4a9f5;
$custom-dark: #000000;
JSON
{
  "hex": "#a786ef",
  "rgb": {
    "r": 167,
    "g": 134,
    "b": 239
  },
  "hsl": {
    "h": 258.857,
    "s": 76.642,
    "l": 73.137
  },
  "oklch": {
    "l": 0.69434,
    "c": 0.15242,
    "h": 296.7
  },
  "luminance": 0.31498
}

Semantic roles & 50–950 ramp

primary
#A786EF
secondary
#EBF3D8
accent
#D90D99
background
#FCFAFF
surface
#F8F4FE
border
#D1CED6
text
#131017
muted
#827F85

Preview Lab

Preview with #A786EF

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

Preview Lab → · Contrast checker → · Palette generator →

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