#786BF8#786BF8

#786BF8 is a mid, highly saturated blue. Relative luminance 0.213; OKLCH L 61.4% C 0.203 H 282.8°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#786BF8
RGBrgb(120, 107, 248)
HSLhsl(246, 91%, 70%)
HSVhsv(246, 57%, 97%)
CMYKcmyk(51.6%, 56.9%, 0%, 2.7%)
CIE-LABlab(53.26, 41.68, -69.20)
CIE-LCHlch(53.26, 80.78, 301.06°)
OKLaboklab(61.41% 0.045 -0.1981)
OKLCHoklch(61.41% 0.203 282.8)
XYZxyz(29.9415, 21.2841, 91.3193)
Luminance0.2129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BF8 #EBF86B
analogous
#6BA5F8 #786BF8 #BF6BF8
triadic
#786BF8 #F8786B #6BF878
tetradic
#786BF8 #F86BA5 #EBF86B #6BF8BF
square
#786BF8 #F86BA5 #EBF86B #6BF8BF
split-complementary
#786BF8 #F8BF6B #A5F86B
monochromatic
#1E0BDE #4331F5 #786BF8 #ADA5FB #E3E0FE

Accessibility & contrast

On white

3.99
#786BF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#786BF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BF8
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BF8#FFFFFF#000000##000000
##786BF81.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FD
Deuteranopia (green-blind)
#007AF5
Tritanopia (blue-blind)
#438CA7
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786bf8;
/* rgb */ color: rgb(120, 107, 248);
/* oklch */ color: oklch(61.4% 0.203 282.8);
Tailwind
colors: {
  custom: {
    50: '#a896fb',
    500: '#786bf8',
    950: '#000000',
  },
}
SCSS
$custom: #786bf8;
$custom-light: #a896fb;
$custom-dark: #000000;
JSON
{
  "hex": "#786bf8",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 248
  },
  "hsl": {
    "h": 245.532,
    "s": 90.968,
    "l": 69.608
  },
  "oklch": {
    "l": 0.61414,
    "c": 0.20313,
    "h": 282.8
  },
  "luminance": 0.21286
}

Semantic roles & 50–950 ramp

primary
#786BF8
secondary
#F0F4CB
accent
#E600D0
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #786BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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