#786BC7#786BC7

#786BC7 is a mid, vivid blue. Relative luminance 0.186; OKLCH L 58.2% C 0.138 H 287.8°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#786BC7
RGBrgb(120, 107, 199)
HSLhsl(248, 45%, 60%)
HSVhsv(248, 46%, 78%)
CMYKcmyk(39.7%, 46.2%, 0%, 22%)
CIE-LABlab(50.25, 27.40, -46.38)
CIE-LCHlch(50.25, 53.87, 300.57°)
OKLaboklab(58.21% 0.0421 -0.1311)
OKLCHoklch(58.21% 0.138 287.8)
XYZxyz(23.3094, 18.6312, 56.3898)
Luminance0.1863 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BC7 #BAC76B
analogous
#6B8CC7 #786BC7 #A66BC7
triadic
#786BC7 #C7786B #6BC778
tetradic
#786BC7 #C76B8C #BAC76B #6BC7A6
square
#786BC7 #C76B8C #BAC76B #6BC7A6
split-complementary
#786BC7 #C7A66B #8CC76B
monochromatic
#3E3285 #5343B2 #786BC7 #A097D8 #C9C4E9

Accessibility & contrast

On white

4.44
#786BC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#786BC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BC7
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BC7#FFFFFF#000000##000000
##786BC71.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#497ACA
Deuteranopia (green-blind)
#4875C5
Tritanopia (blue-blind)
#627D8F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786bc7;
/* rgb */ color: rgb(120, 107, 199);
/* oklch */ color: oklch(58.2% 0.138 287.8);
Tailwind
colors: {
  custom: {
    50: '#a395d8',
    500: '#786bc7',
    950: '#000000',
  },
}
SCSS
$custom: #786bc7;
$custom-light: #a395d8;
$custom-dark: #000000;
JSON
{
  "hex": "#786bc7",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 199
  },
  "hsl": {
    "h": 248.478,
    "s": 45.098,
    "l": 60
  },
  "oklch": {
    "l": 0.58207,
    "c": 0.13769,
    "h": 287.8
  },
  "luminance": 0.18632
}

Semantic roles & 50–950 ramp

primary
#786BC7
secondary
#D4D9B5
accent
#D553C2
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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