#786FBB#786FBB

#786FBB is a mid, moderate blue. Relative luminance 0.190; OKLCH L 58.3% C 0.115 H 287.7°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#786FBB
RGBrgb(120, 111, 187)
HSLhsl(247, 36%, 58%)
HSVhsv(247, 41%, 73%)
CMYKcmyk(35.8%, 40.6%, 0%, 26.7%)
CIE-LABlab(50.63, 21.64, -38.89)
CIE-LCHlch(50.63, 44.51, 299.10°)
OKLaboklab(58.29% 0.0349 -0.1092)
OKLCHoklch(58.29% 0.115 287.7)
XYZxyz(22.3974, 18.9492, 49.4816)
Luminance0.1895 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FBB #B2BB6F
analogous
#6F8CBB #786FBB #9E6FBB
triadic
#786FBB #BB786F #6FBB78
tetradic
#786FBB #BB6F8C #B2BB6F #6FBB9E
square
#786FBB #BB6F8C #B2BB6F #6FBB9E
split-complementary
#786FBB #BB9E6F #8CBB6F
monochromatic
#403877 #564CA1 #786FBB #9F99CF #C6C2E2

Accessibility & contrast

On white

4.38
#786FBB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#786FBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FBB
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FBB#FFFFFF#000000##000000
##786FBB1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#567ABE
Deuteranopia (green-blind)
#5677B9
Tritanopia (blue-blind)
#677D8C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786fbb;
/* rgb */ color: rgb(120, 111, 187);
/* oklch */ color: oklch(58.3% 0.115 287.7);
Tailwind
colors: {
  custom: {
    50: '#a198d0',
    500: '#786fbb',
    950: '#000000',
  },
}
SCSS
$custom: #786fbb;
$custom-light: #a198d0;
$custom-dark: #000000;
JSON
{
  "hex": "#786fbb",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 187
  },
  "hsl": {
    "h": 247.105,
    "s": 35.849,
    "l": 58.431
  },
  "oklch": {
    "l": 0.58285,
    "c": 0.11464,
    "h": 287.7
  },
  "luminance": 0.1895
}

Semantic roles & 50–950 ramp

primary
#786FBB
secondary
#CED2B4
accent
#CC5CBF
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #786FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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