#786BCC#786BCC

#786BCC is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.5% C 0.145 H 287.2°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#786BCC
RGBrgb(120, 107, 204)
HSLhsl(248, 49%, 61%)
HSVhsv(248, 48%, 80%)
CMYKcmyk(41.2%, 47.5%, 0%, 20%)
CIE-LABlab(50.53, 28.81, -48.80)
CIE-LCHlch(50.53, 56.67, 300.56°)
OKLaboklab(58.51% 0.0428 -0.1382)
OKLCHoklch(58.51% 0.145 287.2)
XYZxyz(23.8994, 18.8672, 59.4975)
Luminance0.1887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BCC #BFCC6B
analogous
#6B8ECC #786BCC #A86BCC
triadic
#786BCC #CC786B #6BCC78
tetradic
#786BCC #CC6B8E #BFCC6B #6BCCA8
square
#786BCC #CC6B8E #BFCC6B #6BCCA8
split-complementary
#786BCC #CCA86B #8ECC6B
monochromatic
#3D308C #5040BA #786BCC #A299DC #CBC6EB

Accessibility & contrast

On white

4.40
#786BCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#786BCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BCC
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BCC#FFFFFF#000000##000000
##786BCC1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#457BD0
Deuteranopia (green-blind)
#4476CA
Tritanopia (blue-blind)
#607F92
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786bcc;
/* rgb */ color: rgb(120, 107, 204);
/* oklch */ color: oklch(58.5% 0.145 287.2);
Tailwind
colors: {
  custom: {
    50: '#a395dc',
    500: '#786bcc',
    950: '#000000',
  },
}
SCSS
$custom: #786bcc;
$custom-light: #a395dc;
$custom-dark: #000000;
JSON
{
  "hex": "#786bcc",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 204
  },
  "hsl": {
    "h": 248.041,
    "s": 48.744,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58507,
    "c": 0.14462,
    "h": 287.2
  },
  "luminance": 0.18868
}

Semantic roles & 50–950 ramp

primary
#786BCC
secondary
#D7DCB7
accent
#BC29A8
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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