#786DCF#786DCF

#786DCF is a mid, vivid blue. Relative luminance 0.194; OKLCH L 59.1% C 0.146 H 286.2°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#786DCF
RGBrgb(120, 109, 207)
HSLhsl(247, 51%, 62%)
HSVhsv(247, 47%, 81%)
CMYKcmyk(42%, 47.3%, 0%, 18.8%)
CIE-LABlab(51.19, 28.48, -49.46)
CIE-LCHlch(51.19, 57.07, 299.93°)
OKLaboklab(59.06% 0.0406 -0.1401)
OKLCHoklch(59.06% 0.146 286.2)
XYZxyz(24.4736, 19.4344, 61.4811)
Luminance0.1943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DCF #C4CF6D
analogous
#6D93CF #786DCF #A96DCF
triadic
#786DCF #CF786D #6DCF78
tetradic
#786DCF #CF6D93 #C4CF6D #6DCFA9
square
#786DCF #CF6D93 #C4CF6D #6DCFA9
split-complementary
#786DCF #CFA96D #93CF6D
monochromatic
#3B3092 #4D3FC0 #786DCF #A39BDE #CDC9ED

Accessibility & contrast

On white

4.30
#786DCF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#786DCF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DCF
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DCF#FFFFFF#000000##000000
##786DCF1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#467DD3
Deuteranopia (green-blind)
#4477CD
Tritanopia (blue-blind)
#5E8194
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786dcf;
/* rgb */ color: rgb(120, 109, 207);
/* oklch */ color: oklch(59.1% 0.146 286.2);
Tailwind
colors: {
  custom: {
    50: '#a397de',
    500: '#786dcf',
    950: '#000000',
  },
}
SCSS
$custom: #786dcf;
$custom-light: #a397de;
$custom-dark: #000000;
JSON
{
  "hex": "#786dcf",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 207
  },
  "hsl": {
    "h": 246.735,
    "s": 50.515,
    "l": 61.961
  },
  "oklch": {
    "l": 0.59059,
    "c": 0.14584,
    "h": 286.2
  },
  "luminance": 0.19435
}

Semantic roles & 50–950 ramp

primary
#786DCF
secondary
#DADEBA
accent
#BE28AD
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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