#786DCC#786DCC

#786DCC is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.9% C 0.142 H 286.5°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#786DCC
RGBrgb(120, 109, 204)
HSLhsl(247, 48%, 61%)
HSVhsv(247, 47%, 80%)
CMYKcmyk(41.2%, 46.6%, 0%, 20%)
CIE-LABlab(51.02, 27.62, -48.02)
CIE-LCHlch(51.02, 55.39, 299.91°)
OKLaboklab(58.88% 0.0402 -0.1358)
OKLCHoklch(58.88% 0.142 286.5)
XYZxyz(24.1104, 19.2891, 59.5678)
Luminance0.1929 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DCC #C1CC6D
analogous
#6D92CC #786DCC #A86DCC
triadic
#786DCC #CC786D #6DCC78
tetradic
#786DCC #CC6D92 #C1CC6D #6DCCA8
square
#786DCC #CC6D92 #C1CC6D #6DCCA8
split-complementary
#786DCC #CCA86D #92CC6D
monochromatic
#3C318D #4F41BB #786DCC #A29ADC #CCC8EC

Accessibility & contrast

On white

4.32
#786DCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#786DCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DCC
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DCC#FFFFFF#000000##000000
##786DCC1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#497CCF
Deuteranopia (green-blind)
#4777CA
Tritanopia (blue-blind)
#608093
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786dcc;
/* rgb */ color: rgb(120, 109, 204);
/* oklch */ color: oklch(58.9% 0.142 286.5);
Tailwind
colors: {
  custom: {
    50: '#a397dc',
    500: '#786dcc',
    950: '#000000',
  },
}
SCSS
$custom: #786dcc;
$custom-light: #a397dc;
$custom-dark: #000000;
JSON
{
  "hex": "#786dcc",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 204
  },
  "hsl": {
    "h": 246.947,
    "s": 48.223,
    "l": 61.373
  },
  "oklch": {
    "l": 0.58878,
    "c": 0.14168,
    "h": 286.5
  },
  "luminance": 0.1929
}

Semantic roles & 50–950 ramp

primary
#786DCC
secondary
#D8DCB9
accent
#BC2AAB
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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