#786EF0#786EF0

#786EF0 is a mid, vivid blue. Relative luminance 0.214; OKLCH L 61.4% C 0.189 H 282.8°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#786EF0
RGBrgb(120, 110, 240)
HSLhsl(245, 81%, 69%)
HSVhsv(245, 54%, 94%)
CMYKcmyk(50%, 54.2%, 0%, 5.9%)
CIE-LABlab(53.42, 37.55, -64.48)
CIE-LCHlch(53.42, 74.62, 300.21°)
OKLaboklab(61.37% 0.0418 -0.1842)
OKLCHoklch(61.37% 0.189 282.8)
XYZxyz(29.0451, 21.4346, 85.0280)
Luminance0.2144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EF0 #E6F06E
analogous
#6EA5F0 #786EF0 #B96EF0
triadic
#786EF0 #F0786E #6EF078
tetradic
#786EF0 #F06EA5 #E6F06E #6EF0B9
square
#786EF0 #F06EA5 #E6F06E #6EF0B9
split-complementary
#786EF0 #F0B96E #A5F06E
monochromatic
#2415CE #4437EA #786EF0 #ACA5F6 #DFDDFB

Accessibility & contrast

On white

3.97
#786EF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#786EF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EF0
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EF0#FFFFFF#000000##000000
##786EF01.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2084F4
Deuteranopia (green-blind)
#0E7BED
Tritanopia (blue-blind)
#4A8BA4
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #786ef0;
/* rgb */ color: rgb(120, 110, 240);
/* oklch */ color: oklch(61.4% 0.189 282.8);
Tailwind
colors: {
  custom: {
    50: '#a798f6',
    500: '#786ef0',
    950: '#000000',
  },
}
SCSS
$custom: #786ef0;
$custom-light: #a798f6;
$custom-dark: #000000;
JSON
{
  "hex": "#786ef0",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 240
  },
  "hsl": {
    "h": 244.615,
    "s": 81.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.61368,
    "c": 0.18887,
    "h": 282.8
  },
  "luminance": 0.21436
}

Semantic roles & 50–950 ramp

primary
#786EF0
secondary
#EDF0CA
accent
#DE08CD
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786EF0

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

Preview Lab → · Contrast checker → · Palette generator →

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