#786BF9#786BF9

#786BF9 is a mid, highly saturated blue. Relative luminance 0.213; OKLCH L 61.5% C 0.204 H 282.7°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#786BF9
RGBrgb(120, 107, 249)
HSLhsl(245, 92%, 70%)
HSVhsv(245, 57%, 98%)
CMYKcmyk(51.8%, 57%, 0%, 2.4%)
CIE-LABlab(53.33, 41.98, -69.64)
CIE-LCHlch(53.33, 81.32, 301.08°)
OKLaboklab(61.49% 0.045 -0.1994)
OKLCHoklch(61.49% 0.204 282.7)
XYZxyz(30.0971, 21.3463, 92.1385)
Luminance0.2135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BF9 #ECF96B
analogous
#6BA5F9 #786BF9 #BF6BF9
triadic
#786BF9 #F9786B #6BF978
tetradic
#786BF9 #F96BA5 #ECF96B #6BF9BF
square
#786BF9 #F96BA5 #ECF96B #6BF9BF
split-complementary
#786BF9 #F9BF6B #A5F96B
monochromatic
#1D09E0 #4230F7 #786BF9 #AEA6FB #E3E1FE

Accessibility & contrast

On white

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

On black

5.27
#786BF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BF9
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BF9#FFFFFF#000000##000000
##786BF91.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FE
Deuteranopia (green-blind)
#007BF6
Tritanopia (blue-blind)
#428CA8
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786bf9;
/* rgb */ color: rgb(120, 107, 249);
/* oklch */ color: oklch(61.5% 0.204 282.7);
Tailwind
colors: {
  custom: {
    50: '#a896fc',
    500: '#786bf9',
    950: '#000000',
  },
}
SCSS
$custom: #786bf9;
$custom-light: #a896fc;
$custom-dark: #000000;
JSON
{
  "hex": "#786bf9",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 249
  },
  "hsl": {
    "h": 245.493,
    "s": 92.208,
    "l": 69.804
  },
  "oklch": {
    "l": 0.61486,
    "c": 0.20442,
    "h": 282.7
  },
  "luminance": 0.21348
}

Semantic roles & 50–950 ramp

primary
#786BF9
secondary
#F0F4CC
accent
#E600D0
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #786BF9

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

Preview Lab → · Contrast checker → · Palette generator →

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