#786BC9#786BC9

#786BC9 is a mid, vivid blue. Relative luminance 0.187; OKLCH L 58.3% C 0.140 H 287.6°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#786BC9
RGBrgb(120, 107, 201)
HSLhsl(248, 47%, 60%)
HSVhsv(248, 47%, 79%)
CMYKcmyk(40.3%, 46.8%, 0%, 21.2%)
CIE-LABlab(50.36, 27.96, -47.35)
CIE-LCHlch(50.36, 54.99, 300.56°)
OKLaboklab(58.33% 0.0424 -0.1339)
OKLCHoklch(58.33% 0.14 287.6)
XYZxyz(23.5431, 18.7247, 57.6208)
Luminance0.1873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BC9 #BCC96B
analogous
#6B8DC9 #786BC9 #A76BC9
triadic
#786BC9 #C9786B #6BC978
tetradic
#786BC9 #C96B8D #BCC96B #6BC9A7
square
#786BC9 #C96B8D #BCC96B #6BC9A7
split-complementary
#786BC9 #C9A76B #8DC96B
monochromatic
#3E3288 #5242B5 #786BC9 #A198D9 #CAC5EA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786BC9#FFFFFF#000000##000000
##786BC91.004.434.754.75
#FFFFFF4.431.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#477ACC
Deuteranopia (green-blind)
#4775C7
Tritanopia (blue-blind)
#617E90
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786bc9;
/* rgb */ color: rgb(120, 107, 201);
/* oklch */ color: oklch(58.3% 0.140 287.6);
Tailwind
colors: {
  custom: {
    50: '#a395da',
    500: '#786bc9',
    950: '#000000',
  },
}
SCSS
$custom: #786bc9;
$custom-light: #a395da;
$custom-dark: #000000;
JSON
{
  "hex": "#786bc9",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 201
  },
  "hsl": {
    "h": 248.298,
    "s": 46.535,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58326,
    "c": 0.14046,
    "h": 287.6
  },
  "luminance": 0.18726
}

Semantic roles & 50–950 ramp

primary
#786BC9
secondary
#D5DAB6
accent
#BA2CA6
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786BC9

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

Preview Lab → · Contrast checker → · Palette generator →

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