#786EBC#786EBC

#786EBC is a mid, moderate blue. Relative luminance 0.188; OKLCH L 58.1% C 0.118 H 288.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#786EBC
RGBrgb(120, 110, 188)
HSLhsl(248, 37%, 58%)
HSVhsv(248, 41%, 74%)
CMYKcmyk(36.2%, 41.5%, 0%, 26.3%)
CIE-LABlab(50.42, 22.52, -39.79)
CIE-LCHlch(50.42, 45.72, 299.51°)
OKLaboklab(58.15% 0.0364 -0.1118)
OKLCHoklch(58.15% 0.118 288)
XYZxyz(22.3963, 18.7751, 50.0112)
Luminance0.1878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EBC #B2BC6E
analogous
#6E8BBC #786EBC #9F6EBC
triadic
#786EBC #BC786E #6EBC78
tetradic
#786EBC #BC6E8B #B2BC6E #6EBC9F
square
#786EBC #BC6E8B #B2BC6E #6EBC9F
split-complementary
#786EBC #BC9F6E #8BBC6E
monochromatic
#403778 #564BA2 #786EBC #9F98CF #C6C2E3

Accessibility & contrast

On white

4.42
#786EBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#786EBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EBC
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EBC#FFFFFF#000000##000000
##786EBC1.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#547ABF
Deuteranopia (green-blind)
#5476BA
Tritanopia (blue-blind)
#667D8C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786ebc;
/* rgb */ color: rgb(120, 110, 188);
/* oklch */ color: oklch(58.1% 0.118 288.0);
Tailwind
colors: {
  custom: {
    50: '#a297d0',
    500: '#786ebc',
    950: '#000000',
  },
}
SCSS
$custom: #786ebc;
$custom-light: #a297d0;
$custom-dark: #000000;
JSON
{
  "hex": "#786ebc",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 188
  },
  "hsl": {
    "h": 247.692,
    "s": 36.792,
    "l": 58.431
  },
  "oklch": {
    "l": 0.58146,
    "c": 0.11761,
    "h": 288
  },
  "luminance": 0.18776
}

Semantic roles & 50–950 ramp

primary
#786EBC
secondary
#CED2B3
accent
#CD5BBE
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #786EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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