#786EF8#786EF8

#786EF8 is a mid, vivid blue. Relative luminance 0.219; OKLCH L 61.9% C 0.199 H 282.1°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#786EF8
RGBrgb(120, 110, 248)
HSLhsl(244, 91%, 70%)
HSVhsv(244, 56%, 97%)
CMYKcmyk(51.6%, 55.6%, 0%, 2.7%)
CIE-LABlab(53.94, 39.94, -68.09)
CIE-LCHlch(53.94, 78.94, 300.39°)
OKLaboklab(61.92% 0.0419 -0.1948)
OKLCHoklch(61.92% 0.199 282.1)
XYZxyz(30.2598, 21.9205, 91.4253)
Luminance0.2192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EF8 #EEF86E
analogous
#6EA9F8 #786EF8 #BD6EF8
triadic
#786EF8 #F8786E #6EF878
tetradic
#786EF8 #F86EA9 #EEF86E #6EF8BD
square
#786EF8 #F86EA9 #EEF86E #6EF8BD
split-complementary
#786EF8 #F8BD6E #A9F86E
monochromatic
#1A0BE1 #4234F5 #786EF8 #AEA8FB #E4E2FE

Accessibility & contrast

On white

3.90
#786EF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#786EF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EF8
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EF8#FFFFFF#000000##000000
##786EF81.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0186FD
Deuteranopia (green-blind)
#007CF5
Tritanopia (blue-blind)
#438EA8
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #786ef8;
/* rgb */ color: rgb(120, 110, 248);
/* oklch */ color: oklch(61.9% 0.199 282.1);
Tailwind
colors: {
  custom: {
    50: '#a898fb',
    500: '#786ef8',
    950: '#000000',
  },
}
SCSS
$custom: #786ef8;
$custom-light: #a898fb;
$custom-dark: #000000;
JSON
{
  "hex": "#786ef8",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 248
  },
  "hsl": {
    "h": 244.348,
    "s": 90.789,
    "l": 70.196
  },
  "oklch": {
    "l": 0.6192,
    "c": 0.19928,
    "h": 282.1
  },
  "luminance": 0.21922
}

Semantic roles & 50–950 ramp

primary
#786EF8
secondary
#F1F4CE
accent
#E600D5
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110D17
muted
#807E85

Preview Lab

Preview with #786EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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