#A786EB#A786EB

#A786EB is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.2% C 0.147 H 297.5°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#A786EB
RGBrgb(167, 134, 235)
HSLhsl(260, 72%, 72%)
HSVhsv(260, 43%, 92%)
CMYKcmyk(28.9%, 43%, 0%, 7.8%)
CIE-LABlab(62.73, 33.63, -46.62)
CIE-LCHlch(62.73, 57.48, 305.81°)
OKLaboklab(69.22% 0.0679 -0.1306)
OKLCHoklch(69.22% 0.147 297.5)
XYZxyz(39.4533, 31.2634, 82.5370)
Luminance0.3126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A786EB #CAEB86
analogous
#8698EB #A786EB #DA86EB
triadic
#A786EB #EBA786 #86EBA7
tetradic
#A786EB #EB8698 #CAEB86 #86EBDA
square
#A786EB #EB8698 #CAEB86 #86EBDA
split-complementary
#A786EB #EBDA86 #98EB86
monochromatic
#5D23D4 #8151E2 #A786EB #CDBBF4 #ECE5FB

Accessibility & contrast

On white

2.90
#A786EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.25
#A786EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A786EB
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A786EB#FFFFFF#000000##000000
##A786EB1.002.907.257.25
#FFFFFF2.901.0021.0021.00
#0000007.2521.001.001.00
##0000007.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6898EF
Deuteranopia (green-blind)
#6F97E8
Tritanopia (blue-blind)
#9998AD
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #a786eb;
/* rgb */ color: rgb(167, 134, 235);
/* oklch */ color: oklch(69.2% 0.147 297.5);
Tailwind
colors: {
  custom: {
    50: '#c3a9f2',
    500: '#a786eb',
    950: '#000000',
  },
}
SCSS
$custom: #a786eb;
$custom-light: #c3a9f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a786eb",
  "rgb": {
    "r": 167,
    "g": 134,
    "b": 235
  },
  "hsl": {
    "h": 259.604,
    "s": 71.631,
    "l": 72.353
  },
  "oklch": {
    "l": 0.69223,
    "c": 0.14722,
    "h": 297.5
  },
  "luminance": 0.31264
}

Semantic roles & 50–950 ramp

primary
#A786EB
secondary
#EAF2D9
accent
#D41294
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #A786EB

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

Preview Lab → · Contrast checker → · Palette generator →

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