#786CEF#786CEF

#786CEF is a mid, vivid blue. Relative luminance 0.209; OKLCH L 61.0% C 0.190 H 283.3°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#786CEF
RGBrgb(120, 108, 239)
HSLhsl(245, 80%, 68%)
HSVhsv(245, 55%, 94%)
CMYKcmyk(49.8%, 54.8%, 0%, 6.3%)
CIE-LABlab(52.89, 38.42, -64.78)
CIE-LCHlch(52.89, 75.32, 300.68°)
OKLaboklab(60.95% 0.0439 -0.1851)
OKLCHoklch(60.95% 0.19 283.3)
XYZxyz(28.6836, 20.9487, 84.1767)
Luminance0.2095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CEF #E3EF6C
analogous
#6CA1EF #786CEF #B96CEF
triadic
#786CEF #EF786C #6CEF78
tetradic
#786CEF #EF6CA1 #E3EF6C #6CEFB9
square
#786CEF #EF6CA1 #E3EF6C #6CEFB9
split-complementary
#786CEF #EFB96C #A1EF6C
monochromatic
#2716CB #4535E9 #786CEF #ABA3F5 #DDDAFB

Accessibility & contrast

On white

4.05
#786CEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#786CEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CEF
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CEF#FFFFFF#000000##000000
##786CEF1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1982F3
Deuteranopia (green-blind)
#047AEC
Tritanopia (blue-blind)
#4B8AA3
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786cef;
/* rgb */ color: rgb(120, 108, 239);
/* oklch */ color: oklch(61.0% 0.190 283.3);
Tailwind
colors: {
  custom: {
    50: '#a796f5',
    500: '#786cef',
    950: '#000000',
  },
}
SCSS
$custom: #786cef;
$custom-light: #a796f5;
$custom-dark: #000000;
JSON
{
  "hex": "#786cef",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 239
  },
  "hsl": {
    "h": 245.496,
    "s": 80.368,
    "l": 68.039
  },
  "oklch": {
    "l": 0.60954,
    "c": 0.19021,
    "h": 283.3
  },
  "luminance": 0.2095
}

Semantic roles & 50–950 ramp

primary
#786CEF
secondary
#ECEFC7
accent
#DD09C9
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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