#A786FB#A786FB

#A786FB is a light, vivid violet. Relative luminance 0.322; OKLCH L 70.1% C 0.168 H 294.7°. Best body text is #000000 at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#A786FB
RGBrgb(167, 134, 251)
HSLhsl(257, 94%, 75%)
HSVhsv(257, 47%, 98%)
CMYKcmyk(33.5%, 46.6%, 0%, 1.6%)
CIE-LABlab(63.53, 37.63, -54.16)
CIE-LCHlch(63.53, 65.95, 304.79°)
OKLaboklab(70.09% 0.0701 -0.1526)
OKLCHoklch(70.09% 0.168 294.7)
XYZxyz(41.8696, 32.2300, 95.2632)
Luminance0.3223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A786FB #DAFB86
analogous
#869FFB #A786FB #E186FB
triadic
#A786FB #FBA786 #86FBA7
tetradic
#A786FB #FB869F #DAFB86 #86FBE1
square
#A786FB #FB869F #DAFB86 #86FBE1
split-complementary
#A786FB #FBE186 #9FFB86
monochromatic
#5110F7 #7C4BF9 #A786FB #D2C1FD #E9E1FE

Accessibility & contrast

On white

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

On black

7.45
#A786FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A786FB
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A786FB#FFFFFF#000000##000000
##A786FB1.002.827.457.45
#FFFFFF2.821.0021.0021.00
#0000007.4521.001.001.00
##0000007.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E9BFF
Deuteranopia (green-blind)
#6498F8
Tritanopia (blue-blind)
#949CB5
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #a786fb;
/* rgb */ color: rgb(167, 134, 251);
/* oklch */ color: oklch(70.1% 0.168 294.7);
Tailwind
colors: {
  custom: {
    50: '#c4aafd',
    500: '#a786fb',
    950: '#000000',
  },
}
SCSS
$custom: #a786fb;
$custom-light: #c4aafd;
$custom-dark: #000000;
JSON
{
  "hex": "#a786fb",
  "rgb": {
    "r": 167,
    "g": 134,
    "b": 251
  },
  "hsl": {
    "h": 256.923,
    "s": 93.6,
    "l": 75.49
  },
  "oklch": {
    "l": 0.70089,
    "c": 0.16795,
    "h": 294.7
  },
  "luminance": 0.32231
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A786FB

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

Preview Lab → · Contrast checker → · Palette generator →

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