#786BCF#786BCF

#786BCF is a mid, vivid blue. Relative luminance 0.190; OKLCH L 58.7% C 0.149 H 286.8°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#786BCF
RGBrgb(120, 107, 207)
HSLhsl(248, 51%, 62%)
HSVhsv(248, 48%, 81%)
CMYKcmyk(42%, 48.3%, 0%, 18.8%)
CIE-LABlab(50.70, 29.67, -50.24)
CIE-LCHlch(50.70, 58.35, 300.56°)
OKLaboklab(58.69% 0.0431 -0.1424)
OKLCHoklch(58.69% 0.149 286.8)
XYZxyz(24.2627, 19.0126, 61.4108)
Luminance0.1901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BCF #C2CF6B
analogous
#6B90CF #786BCF #AA6BCF
triadic
#786BCF #CF786B #6BCF78
tetradic
#786BCF #CF6B90 #C2CF6B #6BCFAA
square
#786BCF #CF6B90 #C2CF6B #6BCFAA
split-complementary
#786BCF #CFAA6B #90CF6B
monochromatic
#3C2F91 #4F3EBF #786BCF #A299DE #CCC7ED

Accessibility & contrast

On white

4.37
#786BCF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#786BCF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BCF
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BCF#FFFFFF#000000##000000
##786BCF1.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#437BD3
Deuteranopia (green-blind)
#4176CD
Tritanopia (blue-blind)
#5E8093
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786bcf;
/* rgb */ color: rgb(120, 107, 207);
/* oklch */ color: oklch(58.7% 0.149 286.8);
Tailwind
colors: {
  custom: {
    50: '#a395de',
    500: '#786bcf',
    950: '#000000',
  },
}
SCSS
$custom: #786bcf;
$custom-light: #a395de;
$custom-dark: #000000;
JSON
{
  "hex": "#786bcf",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 207
  },
  "hsl": {
    "h": 247.8,
    "s": 51.02,
    "l": 61.569
  },
  "oklch": {
    "l": 0.5869,
    "c": 0.14875,
    "h": 286.8
  },
  "luminance": 0.19013
}

Semantic roles & 50–950 ramp

primary
#786BCF
secondary
#D9DEB8
accent
#BE27AB
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786BCF

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

Preview Lab → · Contrast checker → · Palette generator →

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