#786BC8#786BC8

#786BC8 is a mid, vivid blue. Relative luminance 0.187; OKLCH L 58.3% C 0.139 H 287.7°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#786BC8
RGBrgb(120, 107, 200)
HSLhsl(248, 46%, 60%)
HSVhsv(248, 47%, 78%)
CMYKcmyk(40%, 46.5%, 0%, 21.6%)
CIE-LABlab(50.31, 27.68, -46.87)
CIE-LCHlch(50.31, 54.43, 300.56°)
OKLaboklab(58.27% 0.0423 -0.1325)
OKLCHoklch(58.27% 0.139 287.7)
XYZxyz(23.4258, 18.6778, 57.0033)
Luminance0.1868 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BC8 #BBC86B
analogous
#6B8CC8 #786BC8 #A66BC8
triadic
#786BC8 #C8786B #6BC878
tetradic
#786BC8 #C86B8C #BBC86B #6BC8A6
square
#786BC8 #C86B8C #BBC86B #6BC8A6
split-complementary
#786BC8 #C8A66B #8CC86B
monochromatic
#3E3287 #5243B3 #786BC8 #A198D9 #C9C4E9

Accessibility & contrast

On white

4.43
#786BC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#786BC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BC8
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BC8#FFFFFF#000000##000000
##786BC81.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#487ACB
Deuteranopia (green-blind)
#4775C6
Tritanopia (blue-blind)
#627E90
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786bc8;
/* rgb */ color: rgb(120, 107, 200);
/* oklch */ color: oklch(58.3% 0.139 287.7);
Tailwind
colors: {
  custom: {
    50: '#a395d9',
    500: '#786bc8',
    950: '#000000',
  },
}
SCSS
$custom: #786bc8;
$custom-light: #a395d9;
$custom-dark: #000000;
JSON
{
  "hex": "#786bc8",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 200
  },
  "hsl": {
    "h": 248.387,
    "s": 45.813,
    "l": 60.196
  },
  "oklch": {
    "l": 0.58266,
    "c": 0.13908,
    "h": 287.7
  },
  "luminance": 0.18679
}

Semantic roles & 50–950 ramp

primary
#786BC8
secondary
#D4D9B6
accent
#B92CA5
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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