#786CC7#786CC7

#786CC7 is a mid, vivid blue. Relative luminance 0.188; OKLCH L 58.4% C 0.136 H 287.5°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#786CC7
RGBrgb(120, 108, 199)
HSLhsl(248, 45%, 60%)
HSVhsv(248, 46%, 78%)
CMYKcmyk(39.7%, 45.7%, 0%, 22%)
CIE-LABlab(50.50, 26.80, -45.99)
CIE-LCHlch(50.50, 53.23, 300.23°)
OKLaboklab(58.39% 0.0408 -0.1299)
OKLCHoklch(58.39% 0.136 287.5)
XYZxyz(23.4142, 18.8409, 56.4248)
Luminance0.1884 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CC7 #BBC76C
analogous
#6C8DC7 #786CC7 #A56CC7
triadic
#786CC7 #C7786C #6CC778
tetradic
#786CC7 #C76C8D #BBC76C #6CC7A5
square
#786CC7 #C76C8D #BBC76C #6CC7A5
split-complementary
#786CC7 #C7A56C #8DC76C
monochromatic
#3E3386 #5244B2 #786CC7 #A198D8 #C9C5E9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786CC7#FFFFFF#000000##000000
##786CC71.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)
#4B7ACA
Deuteranopia (green-blind)
#4A76C5
Tritanopia (blue-blind)
#627E90
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786cc7;
/* rgb */ color: rgb(120, 108, 199);
/* oklch */ color: oklch(58.4% 0.136 287.5);
Tailwind
colors: {
  custom: {
    50: '#a396d8',
    500: '#786cc7',
    950: '#000000',
  },
}
SCSS
$custom: #786cc7;
$custom-light: #a396d8;
$custom-dark: #000000;
JSON
{
  "hex": "#786cc7",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 199
  },
  "hsl": {
    "h": 247.912,
    "s": 44.828,
    "l": 60.196
  },
  "oklch": {
    "l": 0.58394,
    "c": 0.13619,
    "h": 287.5
  },
  "luminance": 0.18842
}

Semantic roles & 50–950 ramp

primary
#786CC7
secondary
#D4D9B6
accent
#B82EA6
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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