#786BBF#786BBF

#786BBF is a mid, vivid blue. Relative luminance 0.183; OKLCH L 57.7% C 0.126 H 288.9°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#786BBF
RGBrgb(120, 107, 191)
HSLhsl(249, 40%, 58%)
HSVhsv(249, 44%, 75%)
CMYKcmyk(37.2%, 44%, 0%, 25.1%)
CIE-LABlab(49.82, 25.15, -42.47)
CIE-LCHlch(49.82, 49.36, 300.64°)
OKLaboklab(57.74% 0.041 -0.1196)
OKLCHoklch(57.74% 0.126 288.9)
XYZxyz(22.4048, 18.2694, 51.6260)
Luminance0.1827 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BBF #B2BF6B
analogous
#6B88BF #786BBF #A26BBF
triadic
#786BBF #BF786B #6BBF78
tetradic
#786BBF #BF6B88 #B2BF6B #6BBFA2
square
#786BBF #BF6B88 #B2BF6B #6BBFA2
split-complementary
#786BBF #BFA26B #88BF6B
monochromatic
#40357B #5647A5 #786BBF #9F96D1 #C6C0E4

Accessibility & contrast

On white

4.51
#786BBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#786BBF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BBF
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BBF#FFFFFF#000000##000000
##786BBF1.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E78C2
Deuteranopia (green-blind)
#4E74BD
Tritanopia (blue-blind)
#657B8C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786bbf;
/* rgb */ color: rgb(120, 107, 191);
/* oklch */ color: oklch(57.7% 0.126 288.9);
Tailwind
colors: {
  custom: {
    50: '#a295d3',
    500: '#786bbf',
    950: '#000000',
  },
}
SCSS
$custom: #786bbf;
$custom-light: #a295d3;
$custom-dark: #000000;
JSON
{
  "hex": "#786bbf",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 191
  },
  "hsl": {
    "h": 249.286,
    "s": 39.623,
    "l": 58.431
  },
  "oklch": {
    "l": 0.5774,
    "c": 0.12646,
    "h": 288.9
  },
  "luminance": 0.1827
}

Semantic roles & 50–950 ramp

primary
#786BBF
secondary
#CED4B2
accent
#D058BD
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786BBF

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

Preview Lab → · Contrast checker → · Palette generator →

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