#786BFE#786BFE

#786BFE is a mid, highly saturated blue. Relative luminance 0.217; OKLCH L 61.8% C 0.211 H 282.3°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#786BFE
RGBrgb(120, 107, 254)
HSLhsl(245, 99%, 71%)
HSVhsv(245, 58%, 100%)
CMYKcmyk(52.8%, 57.9%, 0%, 0.4%)
CIE-LABlab(53.67, 43.47, -71.86)
CIE-LCHlch(53.67, 83.99, 301.17°)
OKLaboklab(61.85% 0.0449 -0.2059)
OKLCHoklch(61.85% 0.211 282.3)
XYZxyz(30.8873, 21.6624, 96.3004)
Luminance0.2166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BFE #F1FE6B
analogous
#6BA7FE #786BFE #C16BFE
triadic
#786BFE #FE786B #6BFE78
tetradic
#786BFE #FE6BA7 #F1FE6B #6BFEC1
square
#786BFE #FE6BA7 #F1FE6B #6BFEC1
split-complementary
#786BFE #FEC16B #A7FE6B
monochromatic
#1602ED #412EFE #786BFE #AFA8FE #E3E1FF

Accessibility & contrast

On white

3.94
#786BFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#786BFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BFE
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BFE#FFFFFF#000000##000000
##786BFE1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0085FF
Deuteranopia (green-blind)
#007BFB
Tritanopia (blue-blind)
#3D8DAA
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #786bfe;
/* rgb */ color: rgb(120, 107, 254);
/* oklch */ color: oklch(61.8% 0.211 282.3);
Tailwind
colors: {
  custom: {
    50: '#a996ff',
    500: '#786bfe',
    950: '#000000',
  },
}
SCSS
$custom: #786bfe;
$custom-light: #a996ff;
$custom-dark: #000000;
JSON
{
  "hex": "#786bfe",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 254
  },
  "hsl": {
    "h": 245.306,
    "s": 98.658,
    "l": 70.784
  },
  "oklch": {
    "l": 0.61845,
    "c": 0.21077,
    "h": 282.3
  },
  "luminance": 0.21664
}

Semantic roles & 50–950 ramp

primary
#786BFE
secondary
#F3F6CF
accent
#E600D1
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #786BFE

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

Preview Lab → · Contrast checker → · Palette generator →

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