#786CC6#786CC6

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

Color values

HEX#786CC6
RGBrgb(120, 108, 198)
HSLhsl(248, 44%, 60%)
HSVhsv(248, 45%, 78%)
CMYKcmyk(39.4%, 45.5%, 0%, 22.4%)
CIE-LABlab(50.45, 26.51, -45.50)
CIE-LCHlch(50.45, 52.66, 300.23°)
OKLaboklab(58.34% 0.0407 -0.1285)
OKLCHoklch(58.34% 0.135 287.6)
XYZxyz(23.2985, 18.7947, 55.8153)
Luminance0.1880 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CC6 #BAC66C
analogous
#6C8DC6 #786CC6 #A56CC6
triadic
#786CC6 #C6786C #6CC678
tetradic
#786CC6 #C66C8D #BAC66C #6CC6A5
square
#786CC6 #C66C8D #BAC66C #6CC6A5
split-complementary
#786CC6 #C6A56C #8DC66C
monochromatic
#3E3384 #5344B0 #786CC6 #A098D7 #C9C4E8

Accessibility & contrast

On white

4.41
#786CC6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#786CC6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CC6
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CC6#FFFFFF#000000##000000
##786CC61.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B7AC9
Deuteranopia (green-blind)
#4A76C4
Tritanopia (blue-blind)
#627E8F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786cc6;
/* rgb */ color: rgb(120, 108, 198);
/* oklch */ color: oklch(58.3% 0.135 287.6);
Tailwind
colors: {
  custom: {
    50: '#a296d8',
    500: '#786cc6',
    950: '#000000',
  },
}
SCSS
$custom: #786cc6;
$custom-light: #a296d8;
$custom-dark: #000000;
JSON
{
  "hex": "#786cc6",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 198
  },
  "hsl": {
    "h": 248,
    "s": 44.118,
    "l": 60
  },
  "oklch": {
    "l": 0.58335,
    "c": 0.13479,
    "h": 287.6
  },
  "luminance": 0.18795
}

Semantic roles & 50–950 ramp

primary
#786CC6
secondary
#D4D8B6
accent
#D454C3
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786CC6

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

Preview Lab → · Contrast checker → · Palette generator →

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