#786FB6#786FB6

#786FB6 is a mid, moderate blue. Relative luminance 0.187; OKLCH L 58.0% C 0.107 H 288.4°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#786FB6
RGBrgb(120, 111, 182)
HSLhsl(248, 33%, 57%)
HSVhsv(248, 39%, 71%)
CMYKcmyk(34.1%, 39%, 0%, 28.6%)
CIE-LABlab(50.38, 20.27, -36.39)
CIE-LCHlch(50.38, 41.66, 299.12°)
OKLaboklab(58.02% 0.0339 -0.1019)
OKLCHoklch(58.02% 0.107 288.4)
XYZxyz(21.8714, 18.7388, 46.7115)
Luminance0.1874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FB6 #ADB66F
analogous
#6F89B6 #786FB6 #9C6FB6
triadic
#786FB6 #B6786F #6FB678
tetradic
#786FB6 #B66F89 #ADB66F #6FB69C
square
#786FB6 #B66F89 #ADB66F #6FB69C
split-complementary
#786FB6 #B69C6F #89B66F
monochromatic
#403971 #584E9A #786FB6 #9E98CB #C4C0DF

Accessibility & contrast

On white

4.42
#786FB6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#786FB6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FB6
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FB6#FFFFFF#000000##000000
##786FB61.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#597AB9
Deuteranopia (green-blind)
#5976B4
Tritanopia (blue-blind)
#697C8A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786fb6;
/* rgb */ color: rgb(120, 111, 182);
/* oklch */ color: oklch(58.0% 0.107 288.4);
Tailwind
colors: {
  custom: {
    50: '#a198cc',
    500: '#786fb6',
    950: '#000000',
  },
}
SCSS
$custom: #786fb6;
$custom-light: #a198cc;
$custom-dark: #000000;
JSON
{
  "hex": "#786fb6",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 182
  },
  "hsl": {
    "h": 247.606,
    "s": 32.719,
    "l": 57.451
  },
  "oklch": {
    "l": 0.58015,
    "c": 0.10743,
    "h": 288.4
  },
  "luminance": 0.18739
}

Semantic roles & 50–950 ramp

primary
#786FB6
secondary
#CBCFB2
accent
#C95FBB
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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