#786EF6#786EF6

#786EF6 is a mid, vivid blue. Relative luminance 0.218; OKLCH L 61.8% C 0.197 H 282.3°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#786EF6
RGBrgb(120, 110, 246)
HSLhsl(244, 88%, 70%)
HSVhsv(244, 55%, 96%)
CMYKcmyk(51.2%, 55.3%, 0%, 3.5%)
CIE-LABlab(53.81, 39.34, -67.19)
CIE-LCHlch(53.81, 77.86, 300.35°)
OKLaboklab(61.78% 0.0419 -0.1922)
OKLCHoklch(61.78% 0.197 282.3)
XYZxyz(29.9511, 21.7971, 89.8000)
Luminance0.2180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EF6 #ECF66E
analogous
#6EA8F6 #786EF6 #BC6EF6
triadic
#786EF6 #F6786E #6EF678
tetradic
#786EF6 #F66EA8 #ECF66E #6EF6BC
square
#786EF6 #F66EA8 #ECF66E #6EF6BC
split-complementary
#786EF6 #F6BC6E #A8F66E
monochromatic
#1D0EDC #4234F2 #786EF6 #AEA8FA #E3E1FD

Accessibility & contrast

On white

3.92
#786EF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#786EF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EF6
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EF6#FFFFFF#000000##000000
##786EF61.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0D85FB
Deuteranopia (green-blind)
#007CF3
Tritanopia (blue-blind)
#458DA7
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #786ef6;
/* rgb */ color: rgb(120, 110, 246);
/* oklch */ color: oklch(61.8% 0.197 282.3);
Tailwind
colors: {
  custom: {
    50: '#a898fa',
    500: '#786ef6',
    950: '#000000',
  },
}
SCSS
$custom: #786ef6;
$custom-light: #a898fa;
$custom-dark: #000000;
JSON
{
  "hex": "#786ef6",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 246
  },
  "hsl": {
    "h": 244.412,
    "s": 88.312,
    "l": 69.804
  },
  "oklch": {
    "l": 0.61781,
    "c": 0.19669,
    "h": 282.3
  },
  "luminance": 0.21799
}

Semantic roles & 50–950 ramp

primary
#786EF6
secondary
#F0F3CD
accent
#E501D4
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786EF6

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

Preview Lab → · Contrast checker → · Palette generator →

#786EF6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva