#A786F9#A786F9

#A786F9 is a light, vivid violet. Relative luminance 0.321; OKLCH L 70.0% C 0.165 H 295.0°. Best body text is #000000 at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#A786F9
RGBrgb(167, 134, 249)
HSLhsl(257, 91%, 75%)
HSVhsv(257, 46%, 98%)
CMYKcmyk(32.9%, 46.2%, 0%, 2.4%)
CIE-LABlab(63.43, 37.12, -53.23)
CIE-LCHlch(63.43, 64.90, 304.89°)
OKLaboklab(69.98% 0.0699 -0.1499)
OKLCHoklch(69.98% 0.165 295)
XYZxyz(41.5560, 32.1045, 93.6116)
Luminance0.3211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A786F9 #D8F986
analogous
#869FF9 #A786F9 #E086F9
triadic
#A786F9 #F9A786 #86F9A7
tetradic
#A786F9 #F9869F #D8F986 #86F9E0
square
#A786F9 #F9869F #D8F986 #86F9E0
split-complementary
#A786F9 #F9E086 #9FF986
monochromatic
#5211F3 #7D4CF6 #A786F9 #D1C0FC #EAE2FE

Accessibility & contrast

On white

2.83
#A786F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.42
#A786F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A786F9
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A786F9#FFFFFF#000000##000000
##A786F91.002.837.427.42
#FFFFFF2.831.0021.0021.00
#0000007.4221.001.001.00
##0000007.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#609BFD
Deuteranopia (green-blind)
#6598F6
Tritanopia (blue-blind)
#949CB4
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #a786f9;
/* rgb */ color: rgb(167, 134, 249);
/* oklch */ color: oklch(70.0% 0.165 295.0);
Tailwind
colors: {
  custom: {
    50: '#c4aafc',
    500: '#a786f9',
    950: '#000000',
  },
}
SCSS
$custom: #a786f9;
$custom-light: #c4aafc;
$custom-dark: #000000;
JSON
{
  "hex": "#a786f9",
  "rgb": {
    "r": 167,
    "g": 134,
    "b": 249
  },
  "hsl": {
    "h": 257.217,
    "s": 90.551,
    "l": 75.098
  },
  "oklch": {
    "l": 0.69977,
    "c": 0.16537,
    "h": 295
  },
  "luminance": 0.32105
}

Semantic roles & 50–950 ramp

primary
#A786F9
secondary
#ECF6D5
accent
#E600A4
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #A786F9

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

Preview Lab → · Contrast checker → · Palette generator →

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