#786FBA#786FBA

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

Color values

HEX#786FBA
RGBrgb(120, 111, 186)
HSLhsl(247, 35%, 58%)
HSVhsv(247, 40%, 73%)
CMYKcmyk(35.5%, 40.3%, 0%, 27.1%)
CIE-LABlab(50.58, 21.37, -38.39)
CIE-LCHlch(50.58, 43.94, 299.10°)
OKLaboklab(58.23% 0.0347 -0.1077)
OKLCHoklch(58.23% 0.113 287.9)
XYZxyz(22.2907, 18.9065, 48.9197)
Luminance0.1891 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FBA #B1BA6F
analogous
#6F8BBA #786FBA #9D6FBA
triadic
#786FBA #BA786F #6FBA78
tetradic
#786FBA #BA6F8B #B1BA6F #6FBA9D
square
#786FBA #BA6F8B #B1BA6F #6FBA9D
split-complementary
#786FBA #BA9D6F #8BBA6F
monochromatic
#403976 #564C9F #786FBA #9F98CE #C6C2E2

Accessibility & contrast

On white

4.39
#786FBA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#786FBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FBA
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FBA#FFFFFF#000000##000000
##786FBA1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#577ABD
Deuteranopia (green-blind)
#5676B8
Tritanopia (blue-blind)
#677D8B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786fba;
/* rgb */ color: rgb(120, 111, 186);
/* oklch */ color: oklch(58.2% 0.113 287.9);
Tailwind
colors: {
  custom: {
    50: '#a198cf',
    500: '#786fba',
    950: '#000000',
  },
}
SCSS
$custom: #786fba;
$custom-light: #a198cf;
$custom-dark: #000000;
JSON
{
  "hex": "#786fba",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 186
  },
  "hsl": {
    "h": 247.2,
    "s": 35.211,
    "l": 58.235
  },
  "oklch": {
    "l": 0.58231,
    "c": 0.1132,
    "h": 287.9
  },
  "luminance": 0.18907
}

Semantic roles & 50–950 ramp

primary
#786FBA
secondary
#CED1B3
accent
#CB5DBE
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #786FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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