#786DBF#786DBF

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

Color values

HEX#786DBF
RGBrgb(120, 109, 191)
HSLhsl(248, 39%, 59%)
HSVhsv(248, 43%, 75%)
CMYKcmyk(37.2%, 42.9%, 0%, 25.1%)
CIE-LABlab(50.32, 23.95, -41.67)
CIE-LCHlch(50.32, 48.07, 299.89°)
OKLaboklab(58.12% 0.0383 -0.1173)
OKLCHoklch(58.12% 0.123 288.1)
XYZxyz(22.6158, 18.6913, 51.6963)
Luminance0.1869 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DBF #B4BF6D
analogous
#6D8BBF #786DBF #A16DBF
triadic
#786DBF #BF786D #6DBF78
tetradic
#786DBF #BF6D8B #B4BF6D #6DBFA1
square
#786DBF #BF6D8B #B4BF6D #6DBFA1
split-complementary
#786DBF #BFA16D #8BBF6D
monochromatic
#3F367B #5549A6 #786DBF #9F98D2 #C7C2E4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786DBF#FFFFFF#000000##000000
##786DBF1.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)
#517AC2
Deuteranopia (green-blind)
#5176BD
Tritanopia (blue-blind)
#657D8D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786dbf;
/* rgb */ color: rgb(120, 109, 191);
/* oklch */ color: oklch(58.1% 0.123 288.1);
Tailwind
colors: {
  custom: {
    50: '#a297d3',
    500: '#786dbf',
    950: '#000000',
  },
}
SCSS
$custom: #786dbf;
$custom-light: #a297d3;
$custom-dark: #000000;
JSON
{
  "hex": "#786dbf",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 191
  },
  "hsl": {
    "h": 248.049,
    "s": 39.048,
    "l": 58.824
  },
  "oklch": {
    "l": 0.58121,
    "c": 0.12341,
    "h": 288.1
  },
  "luminance": 0.18692
}

Semantic roles & 50–950 ramp

primary
#786DBF
secondary
#D0D4B4
accent
#CF59BF
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #786DBF

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

Preview Lab → · Contrast checker → · Palette generator →

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