#786BC5#786BC5

#786BC5 is a mid, vivid blue. Relative luminance 0.185; OKLCH L 58.1% C 0.135 H 288.1°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#786BC5
RGBrgb(120, 107, 197)
HSLhsl(249, 44%, 60%)
HSVhsv(249, 46%, 77%)
CMYKcmyk(39.1%, 45.7%, 0%, 22.7%)
CIE-LABlab(50.14, 26.83, -45.41)
CIE-LCHlch(50.14, 52.74, 300.58°)
OKLaboklab(58.09% 0.0419 -0.1282)
OKLCHoklch(58.09% 0.135 288.1)
XYZxyz(23.0787, 18.5389, 55.1749)
Luminance0.1854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BC5 #B8C56B
analogous
#6B8BC5 #786BC5 #A56BC5
triadic
#786BC5 #C5786B #6BC578
tetradic
#786BC5 #C56B8B #B8C56B #6BC5A5
square
#786BC5 #C56B8B #B8C56B #6BC5A5
split-complementary
#786BC5 #C5A56B #8BC56B
monochromatic
#3F3382 #5444AE #786BC5 #A097D6 #C8C3E7

Accessibility & contrast

On white

4.46
#786BC5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#786BC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BC5
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BC5#FFFFFF#000000##000000
##786BC51.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A79C8
Deuteranopia (green-blind)
#4A75C3
Tritanopia (blue-blind)
#637D8E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786bc5;
/* rgb */ color: rgb(120, 107, 197);
/* oklch */ color: oklch(58.1% 0.135 288.1);
Tailwind
colors: {
  custom: {
    50: '#a295d7',
    500: '#786bc5',
    950: '#000000',
  },
}
SCSS
$custom: #786bc5;
$custom-light: #a295d7;
$custom-dark: #000000;
JSON
{
  "hex": "#786bc5",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 197
  },
  "hsl": {
    "h": 248.667,
    "s": 43.689,
    "l": 59.608
  },
  "oklch": {
    "l": 0.58088,
    "c": 0.13489,
    "h": 288.1
  },
  "luminance": 0.1854
}

Semantic roles & 50–950 ramp

primary
#786BC5
secondary
#D2D7B4
accent
#D354C1
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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