#A786FC#A786FC

#A786FC is a light, vivid violet. Relative luminance 0.323; OKLCH L 70.1% C 0.169 H 294.5°. Best body text is #000000 at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#A786FC
RGBrgb(167, 134, 252)
HSLhsl(257, 95%, 76%)
HSVhsv(257, 47%, 99%)
CMYKcmyk(33.7%, 46.8%, 0%, 1.2%)
CIE-LABlab(63.58, 37.89, -54.63)
CIE-LCHlch(63.58, 66.48, 304.74°)
OKLaboklab(70.14% 0.0702 -0.154)
OKLCHoklch(70.14% 0.169 294.5)
XYZxyz(42.0277, 32.2932, 96.0955)
Luminance0.3229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A786FC #DBFC86
analogous
#86A0FC #A786FC #E286FC
triadic
#A786FC #FCA786 #86FCA7
tetradic
#A786FC #FC86A0 #DBFC86 #86FCE2
square
#A786FC #FC86A0 #DBFC86 #86FCE2
split-complementary
#A786FC #FCE286 #A0FC86
monochromatic
#500FF9 #7C4AFB #A786FC #D2C2FD #E9E1FE

Accessibility & contrast

On white

2.82
#A786FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.46
#A786FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A786FC
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A786FC#FFFFFF#000000##000000
##A786FC1.002.827.467.46
#FFFFFF2.821.0021.0021.00
#0000007.4621.001.001.00
##0000007.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9BFF
Deuteranopia (green-blind)
#6398F9
Tritanopia (blue-blind)
#939DB5
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #a786fc;
/* rgb */ color: rgb(167, 134, 252);
/* oklch */ color: oklch(70.1% 0.169 294.5);
Tailwind
colors: {
  custom: {
    50: '#c4aafe',
    500: '#a786fc',
    950: '#000000',
  },
}
SCSS
$custom: #a786fc;
$custom-light: #c4aafe;
$custom-dark: #000000;
JSON
{
  "hex": "#a786fc",
  "rgb": {
    "r": 167,
    "g": 134,
    "b": 252
  },
  "hsl": {
    "h": 256.78,
    "s": 95.161,
    "l": 75.686
  },
  "oklch": {
    "l": 0.70144,
    "c": 0.16923,
    "h": 294.5
  },
  "luminance": 0.32294
}

Semantic roles & 50–950 ramp

primary
#A786FC
secondary
#EDF6D5
accent
#E600A5
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #A786FC

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

Preview Lab → · Contrast checker → · Palette generator →

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