#786CF0#786CF0

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

Color values

HEX#786CF0
RGBrgb(120, 108, 240)
HSLhsl(245, 81%, 68%)
HSVhsv(245, 55%, 94%)
CMYKcmyk(50%, 55%, 0%, 5.9%)
CIE-LABlab(52.96, 38.72, -65.23)
CIE-LCHlch(52.96, 75.86, 300.69°)
OKLaboklab(61.02% 0.0439 -0.1864)
OKLCHoklch(61.02% 0.192 283.3)
XYZxyz(28.8317, 21.0079, 84.9569)
Luminance0.2101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CF0 #E4F06C
analogous
#6CA2F0 #786CF0 #BA6CF0
triadic
#786CF0 #F0786C #6CF078
tetradic
#786CF0 #F06CA2 #E4F06C #6CF0BA
square
#786CF0 #F06CA2 #E4F06C #6CF0BA
split-complementary
#786CF0 #F0BA6C #A2F06C
monochromatic
#2615CD #4534EA #786CF0 #ABA4F6 #DEDBFB

Accessibility & contrast

On white

4.04
#786CF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#786CF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CF0
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CF0#FFFFFF#000000##000000
##786CF01.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1683F4
Deuteranopia (green-blind)
#007AED
Tritanopia (blue-blind)
#4A8AA4
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786cf0;
/* rgb */ color: rgb(120, 108, 240);
/* oklch */ color: oklch(61.0% 0.192 283.3);
Tailwind
colors: {
  custom: {
    50: '#a796f6',
    500: '#786cf0',
    950: '#000000',
  },
}
SCSS
$custom: #786cf0;
$custom-light: #a796f6;
$custom-dark: #000000;
JSON
{
  "hex": "#786cf0",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 240
  },
  "hsl": {
    "h": 245.455,
    "s": 81.481,
    "l": 68.235
  },
  "oklch": {
    "l": 0.61023,
    "c": 0.19152,
    "h": 283.3
  },
  "luminance": 0.21009
}

Semantic roles & 50–950 ramp

primary
#786CF0
secondary
#ECF0C8
accent
#DE08CA
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786CF0

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

Preview Lab → · Contrast checker → · Palette generator →

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