#786CD0#786CD0

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

Color values

HEX#786CD0
RGBrgb(120, 108, 208)
HSLhsl(247, 52%, 62%)
HSVhsv(247, 48%, 82%)
CMYKcmyk(42.3%, 48.1%, 0%, 18.4%)
CIE-LABlab(51.00, 29.36, -50.33)
CIE-LCHlch(51.00, 58.27, 300.26°)
OKLaboklab(58.94% 0.0419 -0.1426)
OKLCHoklch(58.94% 0.149 286.4)
XYZxyz(24.4902, 19.2713, 62.0916)
Luminance0.1927 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CD0 #C4D06C
analogous
#6C92D0 #786CD0 #AA6CD0
triadic
#786CD0 #D0786C #6CD078
tetradic
#786CD0 #D06C92 #C4D06C #6CD0AA
square
#786CD0 #D06C92 #C4D06C #6CD0AA
split-complementary
#786CD0 #D0AA6C #92D06C
monochromatic
#3B2F93 #4D3EC1 #786CD0 #A39ADF #CDC9EE

Accessibility & contrast

On white

4.33
#786CD0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#786CD0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CD0
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CD0#FFFFFF#000000##000000
##786CD01.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#447CD4
Deuteranopia (green-blind)
#4277CE
Tritanopia (blue-blind)
#5E8194
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786cd0;
/* rgb */ color: rgb(120, 108, 208);
/* oklch */ color: oklch(58.9% 0.149 286.4);
Tailwind
colors: {
  custom: {
    50: '#a396df',
    500: '#786cd0',
    950: '#000000',
  },
}
SCSS
$custom: #786cd0;
$custom-light: #a396df;
$custom-dark: #000000;
JSON
{
  "hex": "#786cd0",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 208
  },
  "hsl": {
    "h": 247.2,
    "s": 51.546,
    "l": 61.961
  },
  "oklch": {
    "l": 0.58935,
    "c": 0.14868,
    "h": 286.4
  },
  "luminance": 0.19272
}

Semantic roles & 50–950 ramp

primary
#786CD0
secondary
#DADEB9
accent
#BF27AD
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786CD0

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

Preview Lab → · Contrast checker → · Palette generator →

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