#A786EC#A786EC

#A786EC is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.3% C 0.149 H 297.3°. Best body text is #000000 at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#A786EC
RGBrgb(167, 134, 236)
HSLhsl(259, 73%, 73%)
HSVhsv(259, 43%, 93%)
CMYKcmyk(29.2%, 43.2%, 0%, 7.5%)
CIE-LABlab(62.78, 33.87, -47.09)
CIE-LCHlch(62.78, 58.01, 305.73°)
OKLaboklab(69.27% 0.0681 -0.132)
OKLCHoklch(69.27% 0.149 297.3)
XYZxyz(39.5981, 31.3214, 83.3000)
Luminance0.3132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A786EC #CBEC86
analogous
#8698EC #A786EC #DA86EC
triadic
#A786EC #ECA786 #86ECA7
tetradic
#A786EC #EC8698 #CBEC86 #86ECDA
square
#A786EC #EC8698 #CBEC86 #86ECDA
split-complementary
#A786EC #ECDA86 #98EC86
monochromatic
#5C22D6 #8151E4 #A786EC #CDBBF4 #ECE5FB

Accessibility & contrast

On white

2.89
#A786EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.26
#A786EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A786EC
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A786EC#FFFFFF#000000##000000
##A786EC1.002.897.267.26
#FFFFFF2.891.0021.0021.00
#0000007.2621.001.001.00
##0000007.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6898F0
Deuteranopia (green-blind)
#6E97E9
Tritanopia (blue-blind)
#9998AE
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #a786ec;
/* rgb */ color: rgb(167, 134, 236);
/* oklch */ color: oklch(69.3% 0.149 297.3);
Tailwind
colors: {
  custom: {
    50: '#c3a9f2',
    500: '#a786ec',
    950: '#000000',
  },
}
SCSS
$custom: #a786ec;
$custom-light: #c3a9f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a786ec",
  "rgb": {
    "r": 167,
    "g": 134,
    "b": 236
  },
  "hsl": {
    "h": 259.412,
    "s": 72.857,
    "l": 72.549
  },
  "oklch": {
    "l": 0.69275,
    "c": 0.14852,
    "h": 297.3
  },
  "luminance": 0.31322
}

Semantic roles & 50–950 ramp

primary
#A786EC
secondary
#EAF3D8
accent
#D51195
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #A786EC

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

Preview Lab → · Contrast checker → · Palette generator →

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