#A786FA#A786FA

#A786FA is a light, vivid violet. Relative luminance 0.322; OKLCH L 70.0% C 0.167 H 294.8°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#A786FA
RGBrgb(167, 134, 250)
HSLhsl(257, 92%, 75%)
HSVhsv(257, 46%, 98%)
CMYKcmyk(33.2%, 46.4%, 0%, 2%)
CIE-LABlab(63.48, 37.38, -53.70)
CIE-LCHlch(63.48, 65.42, 304.84°)
OKLaboklab(70.03% 0.07 -0.1512)
OKLCHoklch(70.03% 0.167 294.8)
XYZxyz(41.7124, 32.1671, 94.4352)
Luminance0.3217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A786FA #D9FA86
analogous
#869FFA #A786FA #E186FA
triadic
#A786FA #FAA786 #86FAA7
tetradic
#A786FA #FA869F #D9FA86 #86FAE1
square
#A786FA #FA869F #D9FA86 #86FAE1
split-complementary
#A786FA #FAE186 #9FFA86
monochromatic
#5210F5 #7C4BF8 #A786FA #D2C1FC #EAE2FE

Accessibility & contrast

On white

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

On black

7.43
#A786FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A786FA
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A786FA#FFFFFF#000000##000000
##A786FA1.002.837.437.43
#FFFFFF2.831.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9BFE
Deuteranopia (green-blind)
#6598F7
Tritanopia (blue-blind)
#949CB4
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #a786fa;
/* rgb */ color: rgb(167, 134, 250);
/* oklch */ color: oklch(70.0% 0.167 294.8);
Tailwind
colors: {
  custom: {
    50: '#c4aafc',
    500: '#a786fa',
    950: '#000000',
  },
}
SCSS
$custom: #a786fa;
$custom-light: #c4aafc;
$custom-dark: #000000;
JSON
{
  "hex": "#a786fa",
  "rgb": {
    "r": 167,
    "g": 134,
    "b": 250
  },
  "hsl": {
    "h": 257.069,
    "s": 92.063,
    "l": 75.294
  },
  "oklch": {
    "l": 0.70033,
    "c": 0.16666,
    "h": 294.8
  },
  "luminance": 0.32168
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A786FA

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

Preview Lab → · Contrast checker → · Palette generator →

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