#786FB9#786FB9

#786FB9 is a mid, moderate blue. Relative luminance 0.189; OKLCH L 58.2% C 0.112 H 288.0°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#786FB9
RGBrgb(120, 111, 185)
HSLhsl(247, 35%, 58%)
HSVhsv(247, 40%, 73%)
CMYKcmyk(35.1%, 40%, 0%, 27.5%)
CIE-LABlab(50.53, 21.09, -37.89)
CIE-LCHlch(50.53, 43.37, 299.10°)
OKLaboklab(58.18% 0.0345 -0.1063)
OKLCHoklch(58.18% 0.112 288)
XYZxyz(22.1848, 18.8641, 48.3618)
Luminance0.1887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FB9 #B0B96F
analogous
#6F8BB9 #786FB9 #9D6FB9
triadic
#786FB9 #B9786F #6FB978
tetradic
#786FB9 #B96F8B #B0B96F #6FB99D
square
#786FB9 #B96F8B #B0B96F #6FB99D
split-complementary
#786FB9 #B99D6F #8BB96F
monochromatic
#403975 #574D9E #786FB9 #9F98CD #C5C1E1

Accessibility & contrast

On white

4.40
#786FB9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#786FB9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FB9
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FB9#FFFFFF#000000##000000
##786FB91.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#587ABC
Deuteranopia (green-blind)
#5776B7
Tritanopia (blue-blind)
#677D8B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786fb9;
/* rgb */ color: rgb(120, 111, 185);
/* oklch */ color: oklch(58.2% 0.112 288.0);
Tailwind
colors: {
  custom: {
    50: '#a198ce',
    500: '#786fb9',
    950: '#000000',
  },
}
SCSS
$custom: #786fb9;
$custom-light: #a198ce;
$custom-dark: #000000;
JSON
{
  "hex": "#786fb9",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 185
  },
  "hsl": {
    "h": 247.297,
    "s": 34.579,
    "l": 58.039
  },
  "oklch": {
    "l": 0.58176,
    "c": 0.11176,
    "h": 288
  },
  "luminance": 0.18865
}

Semantic roles & 50–950 ramp

primary
#786FB9
secondary
#CDD1B3
accent
#CB5DBD
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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