#786AF8#786AF8

#786AF8 is a mid, highly saturated blue. Relative luminance 0.211; OKLCH L 61.2% C 0.204 H 283.0°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#786AF8
RGBrgb(120, 106, 248)
HSLhsl(246, 91%, 69%)
HSVhsv(246, 57%, 97%)
CMYKcmyk(51.6%, 57.3%, 0%, 2.7%)
CIE-LABlab(53.03, 42.26, -69.56)
CIE-LCHlch(53.03, 81.39, 301.28°)
OKLaboklab(61.25% 0.046 -0.1992)
OKLCHoklch(61.25% 0.204 283)
XYZxyz(29.8379, 21.0768, 91.2847)
Luminance0.2108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AF8 #EAF86A
analogous
#6AA3F8 #786AF8 #BF6AF8
triadic
#786AF8 #F8786A #6AF878
tetradic
#786AF8 #F86AA3 #EAF86A #6AF8BF
square
#786AF8 #F86AA3 #EAF86A #6AF8BF
split-complementary
#786AF8 #F8BF6A #A3F86A
monochromatic
#1F0ADD #4330F5 #786AF8 #ADA4FB #E2DFFD

Accessibility & contrast

On white

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

On black

5.22
#786AF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AF8
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AF8#FFFFFF#000000##000000
##786AF81.004.035.225.22
#FFFFFF4.031.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FD
Deuteranopia (green-blind)
#007AF5
Tritanopia (blue-blind)
#438BA7
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786af8;
/* rgb */ color: rgb(120, 106, 248);
/* oklch */ color: oklch(61.2% 0.204 283.0);
Tailwind
colors: {
  custom: {
    50: '#a895fb',
    500: '#786af8',
    950: '#000000',
  },
}
SCSS
$custom: #786af8;
$custom-light: #a895fb;
$custom-dark: #000000;
JSON
{
  "hex": "#786af8",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 248
  },
  "hsl": {
    "h": 245.915,
    "s": 91.026,
    "l": 69.412
  },
  "oklch": {
    "l": 0.61248,
    "c": 0.20441,
    "h": 283
  },
  "luminance": 0.21078
}

Semantic roles & 50–950 ramp

primary
#786AF8
secondary
#EFF3CA
accent
#E600CF
background
#FAF9FF
surface
#F5F1FF
border
#CFCBD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #786AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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