#786CF4#786CF4

#786CF4 is a mid, vivid blue. Relative luminance 0.212; OKLCH L 61.3% C 0.197 H 282.9°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#786CF4
RGBrgb(120, 108, 244)
HSLhsl(245, 86%, 69%)
HSVhsv(245, 56%, 96%)
CMYKcmyk(50.8%, 55.7%, 0%, 4.3%)
CIE-LABlab(53.22, 39.91, -67.04)
CIE-LCHlch(53.22, 78.02, 300.77°)
OKLaboklab(61.3% 0.044 -0.1917)
OKLCHoklch(61.3% 0.197 282.9)
XYZxyz(29.4325, 21.2482, 88.1209)
Luminance0.2125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CF4 #E8F46C
analogous
#6CA4F4 #786CF4 #BC6CF4
triadic
#786CF4 #F4786C #6CF478
tetradic
#786CF4 #F46CA4 #E8F46C #6CF4BC
square
#786CF4 #F46CA4 #E8F46C #6CF4BC
split-complementary
#786CF4 #F4BC6C #A4F46C
monochromatic
#2110D6 #4433F0 #786CF4 #ACA5F8 #E1DEFD

Accessibility & contrast

On white

4.00
#786CF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#786CF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CF4
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CF4#FFFFFF#000000##000000
##786CF41.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0484F9
Deuteranopia (green-blind)
#007BF1
Tritanopia (blue-blind)
#478BA6
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786cf4;
/* rgb */ color: rgb(120, 108, 244);
/* oklch */ color: oklch(61.3% 0.197 282.9);
Tailwind
colors: {
  custom: {
    50: '#a796f9',
    500: '#786cf4',
    950: '#000000',
  },
}
SCSS
$custom: #786cf4;
$custom-light: #a796f9;
$custom-dark: #000000;
JSON
{
  "hex": "#786cf4",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 244
  },
  "hsl": {
    "h": 245.294,
    "s": 86.076,
    "l": 69.02
  },
  "oklch": {
    "l": 0.61301,
    "c": 0.1967,
    "h": 282.9
  },
  "luminance": 0.2125
}

Semantic roles & 50–950 ramp

primary
#786CF4
secondary
#EEF2CA
accent
#E303CF
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786CF4

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

Preview Lab → · Contrast checker → · Palette generator →

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