#786CF9#786CF9

#786CF9 is a mid, highly saturated blue. Relative luminance 0.216; OKLCH L 61.7% C 0.203 H 282.5°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#786CF9
RGBrgb(120, 108, 249)
HSLhsl(245, 92%, 70%)
HSVhsv(245, 57%, 98%)
CMYKcmyk(51.8%, 56.6%, 0%, 2.4%)
CIE-LABlab(53.55, 41.40, -69.28)
CIE-LCHlch(53.55, 80.70, 300.86°)
OKLaboklab(61.65% 0.044 -0.1983)
OKLCHoklch(61.65% 0.203 282.5)
XYZxyz(30.2020, 21.5560, 92.1735)
Luminance0.2156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CF9 #EDF96C
analogous
#6CA7F9 #786CF9 #BE6CF9
triadic
#786CF9 #F9786C #6CF978
tetradic
#786CF9 #F96CA7 #EDF96C #6CF9BE
square
#786CF9 #F96CA7 #EDF96C #6CF9BE
split-complementary
#786CF9 #F9BE6C #A7F96C
monochromatic
#1C09E1 #4231F7 #786CF9 #AEA7FB #E4E2FE

Accessibility & contrast

On white

3.95
#786CF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#786CF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CF9
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CF9#FFFFFF#000000##000000
##786CF91.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0085FE
Deuteranopia (green-blind)
#007BF6
Tritanopia (blue-blind)
#428DA8
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #786cf9;
/* rgb */ color: rgb(120, 108, 249);
/* oklch */ color: oklch(61.7% 0.203 282.5);
Tailwind
colors: {
  custom: {
    50: '#a896fc',
    500: '#786cf9',
    950: '#000000',
  },
}
SCSS
$custom: #786cf9;
$custom-light: #a896fc;
$custom-dark: #000000;
JSON
{
  "hex": "#786cf9",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 249
  },
  "hsl": {
    "h": 245.106,
    "s": 92.157,
    "l": 70
  },
  "oklch": {
    "l": 0.61653,
    "c": 0.20313,
    "h": 282.5
  },
  "luminance": 0.21558
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #786CF9

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

Preview Lab → · Contrast checker → · Palette generator →

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