#786BF4#786BF4

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

Color values

HEX#786BF4
RGBrgb(120, 107, 244)
HSLhsl(246, 86%, 69%)
HSVhsv(246, 56%, 96%)
CMYKcmyk(50.8%, 56.1%, 0%, 4.3%)
CIE-LABlab(52.99, 40.49, -67.41)
CIE-LCHlch(52.99, 78.63, 300.99°)
OKLaboklab(61.13% 0.045 -0.1928)
OKLCHoklch(61.13% 0.198 283.1)
XYZxyz(29.3276, 21.0385, 88.0859)
Luminance0.2104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BF4 #E7F46B
analogous
#6BA3F4 #786BF4 #BD6BF4
triadic
#786BF4 #F4786B #6BF478
tetradic
#786BF4 #F46BA3 #E7F46B #6BF4BD
square
#786BF4 #F46BA3 #E7F46B #6BF4BD
split-complementary
#786BF4 #F4BD6B #A3F46B
monochromatic
#2310D5 #4432F0 #786BF4 #ACA4F8 #E0DDFC

Accessibility & contrast

On white

4.03
#786BF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#786BF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BF4
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BF4#FFFFFF#000000##000000
##786BF41.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083F9
Deuteranopia (green-blind)
#007AF1
Tritanopia (blue-blind)
#478AA5
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786bf4;
/* rgb */ color: rgb(120, 107, 244);
/* oklch */ color: oklch(61.1% 0.198 283.1);
Tailwind
colors: {
  custom: {
    50: '#a796f9',
    500: '#786bf4',
    950: '#000000',
  },
}
SCSS
$custom: #786bf4;
$custom-light: #a796f9;
$custom-dark: #000000;
JSON
{
  "hex": "#786bf4",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 244
  },
  "hsl": {
    "h": 245.693,
    "s": 86.164,
    "l": 68.824
  },
  "oklch": {
    "l": 0.61132,
    "c": 0.198,
    "h": 283.1
  },
  "luminance": 0.2104
}

Semantic roles & 50–950 ramp

primary
#786BF4
secondary
#EEF2C9
accent
#E303CD
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786BF4

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

Preview Lab → · Contrast checker → · Palette generator →

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