#786BF3#786BF3

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

Color values

HEX#786BF3
RGBrgb(120, 107, 243)
HSLhsl(246, 85%, 69%)
HSVhsv(246, 56%, 95%)
CMYKcmyk(50.6%, 56%, 0%, 4.7%)
CIE-LABlab(52.93, 40.20, -66.96)
CIE-LCHlch(52.93, 78.09, 300.98°)
OKLaboklab(61.06% 0.045 -0.1915)
OKLCHoklch(61.06% 0.197 283.2)
XYZxyz(29.1762, 20.9780, 87.2884)
Luminance0.2098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BF3 #E6F36B
analogous
#6BA2F3 #786BF3 #BC6BF3
triadic
#786BF3 #F3786B #6BF378
tetradic
#786BF3 #F36BA2 #E6F36B #6BF3BC
square
#786BF3 #F36BA2 #E6F36B #6BF3BC
split-complementary
#786BF3 #F3BC6B #A2F36B
monochromatic
#2411D3 #4432EE #786BF3 #ACA4F8 #DFDCFC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786BF3#FFFFFF#000000##000000
##786BF31.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)
#0083F8
Deuteranopia (green-blind)
#007AF0
Tritanopia (blue-blind)
#488AA5
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786bf3;
/* rgb */ color: rgb(120, 107, 243);
/* oklch */ color: oklch(61.1% 0.197 283.2);
Tailwind
colors: {
  custom: {
    50: '#a796f8',
    500: '#786bf3',
    950: '#000000',
  },
}
SCSS
$custom: #786bf3;
$custom-light: #a796f8;
$custom-dark: #000000;
JSON
{
  "hex": "#786bf3",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 243
  },
  "hsl": {
    "h": 245.735,
    "s": 85,
    "l": 68.627
  },
  "oklch": {
    "l": 0.61062,
    "c": 0.19671,
    "h": 283.2
  },
  "luminance": 0.2098
}

Semantic roles & 50–950 ramp

primary
#786BF3
secondary
#EDF1C9
accent
#E104CC
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786BF3

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

Preview Lab → · Contrast checker → · Palette generator →

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