#786CF7#786CF7

#786CF7 is a mid, highly saturated blue. Relative luminance 0.214; OKLCH L 61.5% C 0.201 H 282.7°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#786CF7
RGBrgb(120, 108, 247)
HSLhsl(245, 90%, 70%)
HSVhsv(245, 56%, 97%)
CMYKcmyk(51.4%, 56.3%, 0%, 3.1%)
CIE-LABlab(53.42, 40.80, -68.38)
CIE-LCHlch(53.42, 79.63, 300.82°)
OKLaboklab(61.51% 0.044 -0.1957)
OKLCHoklch(61.51% 0.201 282.7)
XYZxyz(29.8917, 21.4319, 90.5393)
Luminance0.2143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CF7 #EBF76C
analogous
#6CA6F7 #786CF7 #BE6CF7
triadic
#786CF7 #F7786C #6CF778
tetradic
#786CF7 #F76CA6 #EBF76C #6CF7BE
square
#786CF7 #F76CA6 #EBF76C #6CF7BE
split-complementary
#786CF7 #F7BE6C #A6F76C
monochromatic
#1E0CDD #4332F4 #786CF7 #ADA6FA #E3E0FD

Accessibility & contrast

On white

3.97
#786CF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#786CF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CF7
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CF7#FFFFFF#000000##000000
##786CF71.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FC
Deuteranopia (green-blind)
#007BF4
Tritanopia (blue-blind)
#448CA7
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #786cf7;
/* rgb */ color: rgb(120, 108, 247);
/* oklch */ color: oklch(61.5% 0.201 282.7);
Tailwind
colors: {
  custom: {
    50: '#a896fb',
    500: '#786cf7',
    950: '#000000',
  },
}
SCSS
$custom: #786cf7;
$custom-light: #a896fb;
$custom-dark: #000000;
JSON
{
  "hex": "#786cf7",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 247
  },
  "hsl": {
    "h": 245.18,
    "s": 89.677,
    "l": 69.608
  },
  "oklch": {
    "l": 0.61511,
    "c": 0.20057,
    "h": 282.7
  },
  "luminance": 0.21434
}

Semantic roles & 50–950 ramp

primary
#786CF7
secondary
#F0F3CC
accent
#E600D2
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110D17
muted
#807E85

Preview Lab

Preview with #786CF7

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

Preview Lab → · Contrast checker → · Palette generator →

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