#786CF8#786CF8

#786CF8 is a mid, highly saturated blue. Relative luminance 0.215; OKLCH L 61.6% C 0.202 H 282.6°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#786CF8
RGBrgb(120, 108, 248)
HSLhsl(245, 91%, 70%)
HSVhsv(245, 56%, 97%)
CMYKcmyk(51.6%, 56.5%, 0%, 2.7%)
CIE-LABlab(53.49, 41.10, -68.83)
CIE-LCHlch(53.49, 80.17, 300.84°)
OKLaboklab(61.58% 0.044 -0.197)
OKLCHoklch(61.58% 0.202 282.6)
XYZxyz(30.0464, 21.4938, 91.3542)
Luminance0.2150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CF8 #ECF86C
analogous
#6CA6F8 #786CF8 #BE6CF8
triadic
#786CF8 #F8786C #6CF878
tetradic
#786CF8 #F86CA6 #ECF86C #6CF8BE
square
#786CF8 #F86CA6 #ECF86C #6CF8BE
split-complementary
#786CF8 #F8BE6C #A6F86C
monochromatic
#1D0BDF #4232F5 #786CF8 #AEA6FB #E3E1FE

Accessibility & contrast

On white

3.96
#786CF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#786CF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CF8
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CF8#FFFFFF#000000##000000
##786CF81.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FD
Deuteranopia (green-blind)
#007BF5
Tritanopia (blue-blind)
#438CA8
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #786cf8;
/* rgb */ color: rgb(120, 108, 248);
/* oklch */ color: oklch(61.6% 0.202 282.6);
Tailwind
colors: {
  custom: {
    50: '#a896fb',
    500: '#786cf8',
    950: '#000000',
  },
}
SCSS
$custom: #786cf8;
$custom-light: #a896fb;
$custom-dark: #000000;
JSON
{
  "hex": "#786cf8",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 248
  },
  "hsl": {
    "h": 245.143,
    "s": 90.909,
    "l": 69.804
  },
  "oklch": {
    "l": 0.61582,
    "c": 0.20186,
    "h": 282.6
  },
  "luminance": 0.21496
}

Semantic roles & 50–950 ramp

primary
#786CF8
secondary
#F0F4CC
accent
#E600D2
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #786CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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