#786FB4#786FB4

#786FB4 is a mid, moderate blue. Relative luminance 0.187; OKLCH L 57.9% C 0.105 H 288.7°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#786FB4
RGBrgb(120, 111, 180)
HSLhsl(248, 32%, 57%)
HSVhsv(248, 38%, 71%)
CMYKcmyk(33.3%, 38.3%, 0%, 29.4%)
CIE-LABlab(50.28, 19.73, -35.39)
CIE-LCHlch(50.28, 40.52, 299.14°)
OKLaboklab(57.91% 0.0335 -0.099)
OKLCHoklch(57.91% 0.105 288.7)
XYZxyz(21.6662, 18.6567, 45.6307)
Luminance0.1866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FB4 #ABB46F
analogous
#6F89B4 #786FB4 #9B6FB4
triadic
#786FB4 #B4786F #6FB478
tetradic
#786FB4 #B46F89 #ABB46F #6FB49B
square
#786FB4 #B46F89 #ABB46F #6FB49B
split-complementary
#786FB4 #B49B6F #89B46F
monochromatic
#413A6F #584F97 #786FB4 #9E97C9 #C3BFDE

Accessibility & contrast

On white

4.44
#786FB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#786FB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FB4
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FB4#FFFFFF#000000##000000
##786FB41.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A79B7
Deuteranopia (green-blind)
#5A76B2
Tritanopia (blue-blind)
#697C89
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786fb4;
/* rgb */ color: rgb(120, 111, 180);
/* oklch */ color: oklch(57.9% 0.105 288.7);
Tailwind
colors: {
  custom: {
    50: '#a198cb',
    500: '#786fb4',
    950: '#000000',
  },
}
SCSS
$custom: #786fb4;
$custom-light: #a198cb;
$custom-dark: #000000;
JSON
{
  "hex": "#786fb4",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 180
  },
  "hsl": {
    "h": 247.826,
    "s": 31.507,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5791,
    "c": 0.10452,
    "h": 288.7
  },
  "luminance": 0.18657
}

Semantic roles & 50–950 ramp

primary
#786FB4
secondary
#CACDB1
accent
#C860BA
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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