#A786F8#A786F8

#A786F8 is a light, vivid violet. Relative luminance 0.320; OKLCH L 69.9% C 0.164 H 295.2°. Best body text is #000000 at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#A786F8
RGBrgb(167, 134, 248)
HSLhsl(257, 89%, 75%)
HSVhsv(257, 46%, 97%)
CMYKcmyk(32.7%, 46%, 0%, 2.7%)
CIE-LABlab(63.38, 36.87, -52.76)
CIE-LCHlch(63.38, 64.37, 304.95°)
OKLaboklab(69.92% 0.0698 -0.1485)
OKLCHoklch(69.92% 0.164 295.2)
XYZxyz(41.4005, 32.0423, 92.7923)
Luminance0.3204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A786F8 #D7F886
analogous
#869EF8 #A786F8 #E086F8
triadic
#A786F8 #F8A786 #86F8A7
tetradic
#A786F8 #F8869E #D7F886 #86F8E0
square
#A786F8 #F8869E #D7F886 #86F8E0
split-complementary
#A786F8 #F8E086 #9EF886
monochromatic
#5312F1 #7D4CF5 #A786F8 #D1C0FB #EAE2FD

Accessibility & contrast

On white

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

On black

7.41
#A786F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A786F8
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A786F8#FFFFFF#000000##000000
##A786F81.002.837.417.41
#FFFFFF2.831.0021.0021.00
#0000007.4121.001.001.00
##0000007.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#609AFC
Deuteranopia (green-blind)
#6698F5
Tritanopia (blue-blind)
#959CB3
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #a786f8;
/* rgb */ color: rgb(167, 134, 248);
/* oklch */ color: oklch(69.9% 0.164 295.2);
Tailwind
colors: {
  custom: {
    50: '#c4aafb',
    500: '#a786f8',
    950: '#000000',
  },
}
SCSS
$custom: #a786f8;
$custom-light: #c4aafb;
$custom-dark: #000000;
JSON
{
  "hex": "#a786f8",
  "rgb": {
    "r": 167,
    "g": 134,
    "b": 248
  },
  "hsl": {
    "h": 257.368,
    "s": 89.063,
    "l": 74.902
  },
  "oklch": {
    "l": 0.69922,
    "c": 0.16408,
    "h": 295.2
  },
  "luminance": 0.32043
}

Semantic roles & 50–950 ramp

primary
#A786F8
secondary
#ECF5D6
accent
#E600A3
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #A786F8

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

Preview Lab → · Contrast checker → · Palette generator →

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