#786CC4#786CC4

#786CC4 is a mid, vivid blue. Relative luminance 0.187; OKLCH L 58.2% C 0.132 H 287.8°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#786CC4
RGBrgb(120, 108, 196)
HSLhsl(248, 43%, 60%)
HSVhsv(248, 45%, 77%)
CMYKcmyk(38.8%, 44.9%, 0%, 23.1%)
CIE-LABlab(50.34, 25.95, -44.53)
CIE-LCHlch(50.34, 51.54, 300.23°)
OKLaboklab(58.22% 0.0404 -0.1256)
OKLCHoklch(58.22% 0.132 287.8)
XYZxyz(23.0693, 18.7030, 54.6084)
Luminance0.1870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CC4 #B8C46C
analogous
#6C8CC4 #786CC4 #A46CC4
triadic
#786CC4 #C4786C #6CC478
tetradic
#786CC4 #C46C8C #B8C46C #6CC4A4
square
#786CC4 #C46C8C #B8C46C #6CC4A4
split-complementary
#786CC4 #C4A46C #8CC46C
monochromatic
#3F3482 #5446AD #786CC4 #A098D6 #C8C3E7

Accessibility & contrast

On white

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

On black

4.74
#786CC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CC4
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CC4#FFFFFF#000000##000000
##786CC41.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D7AC7
Deuteranopia (green-blind)
#4C76C2
Tritanopia (blue-blind)
#637D8E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786cc4;
/* rgb */ color: rgb(120, 108, 196);
/* oklch */ color: oklch(58.2% 0.132 287.8);
Tailwind
colors: {
  custom: {
    50: '#a296d6',
    500: '#786cc4',
    950: '#000000',
  },
}
SCSS
$custom: #786cc4;
$custom-light: #a296d6;
$custom-dark: #000000;
JSON
{
  "hex": "#786cc4",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 196
  },
  "hsl": {
    "h": 248.182,
    "s": 42.718,
    "l": 59.608
  },
  "oklch": {
    "l": 0.58218,
    "c": 0.13198,
    "h": 287.8
  },
  "luminance": 0.18704
}

Semantic roles & 50–950 ramp

primary
#786CC4
secondary
#D2D7B5
accent
#D255C1
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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