#786CF3#786CF3

#786CF3 is a mid, vivid blue. Relative luminance 0.212; OKLCH L 61.2% C 0.195 H 283.0°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#786CF3
RGBrgb(120, 108, 243)
HSLhsl(245, 85%, 69%)
HSVhsv(245, 56%, 95%)
CMYKcmyk(50.6%, 55.6%, 0%, 4.7%)
CIE-LABlab(53.15, 39.61, -66.59)
CIE-LCHlch(53.15, 77.48, 300.75°)
OKLaboklab(61.23% 0.044 -0.1904)
OKLCHoklch(61.23% 0.195 283)
XYZxyz(29.2811, 21.1877, 87.3234)
Luminance0.2119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CF3 #E7F36C
analogous
#6CA4F3 #786CF3 #BC6CF3
triadic
#786CF3 #F3786C #6CF378
tetradic
#786CF3 #F36CA4 #E7F36C #6CF3BC
square
#786CF3 #F36CA4 #E7F36C #6CF3BC
split-complementary
#786CF3 #F3BC6C #A4F36C
monochromatic
#2311D3 #4433EE #786CF3 #ACA5F8 #E0DDFC

Accessibility & contrast

On white

4.01
#786CF3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#786CF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CF3
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CF3#FFFFFF#000000##000000
##786CF31.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0983F8
Deuteranopia (green-blind)
#007AF0
Tritanopia (blue-blind)
#488BA5
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786cf3;
/* rgb */ color: rgb(120, 108, 243);
/* oklch */ color: oklch(61.2% 0.195 283.0);
Tailwind
colors: {
  custom: {
    50: '#a796f8',
    500: '#786cf3',
    950: '#000000',
  },
}
SCSS
$custom: #786cf3;
$custom-light: #a796f8;
$custom-dark: #000000;
JSON
{
  "hex": "#786cf3",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 243
  },
  "hsl": {
    "h": 245.333,
    "s": 84.906,
    "l": 68.824
  },
  "oklch": {
    "l": 0.61231,
    "c": 0.19542,
    "h": 283
  },
  "luminance": 0.21189
}

Semantic roles & 50–950 ramp

primary
#786CF3
secondary
#EEF1C9
accent
#E104CE
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786CF3

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

Preview Lab → · Contrast checker → · Palette generator →

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