#786AF5#786AF5

#786AF5 is a mid, highly saturated blue. Relative luminance 0.209; OKLCH L 61.0% C 0.201 H 283.3°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#786AF5
RGBrgb(120, 106, 245)
HSLhsl(246, 87%, 69%)
HSVhsv(246, 57%, 96%)
CMYKcmyk(51%, 56.7%, 0%, 3.9%)
CIE-LABlab(52.83, 41.37, -68.22)
CIE-LCHlch(52.83, 79.79, 301.23°)
OKLaboklab(61.03% 0.046 -0.1952)
OKLCHoklch(61.03% 0.201 283.3)
XYZxyz(29.3762, 20.8921, 88.8532)
Luminance0.2089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AF5 #E7F56A
analogous
#6AA2F5 #786AF5 #BE6AF5
triadic
#786AF5 #F5786A #6AF578
tetradic
#786AF5 #F56AA2 #E7F56A #6AF5BE
square
#786AF5 #F56AA2 #E7F56A #6AF5BE
split-complementary
#786AF5 #F5BE6A #A2F56A
monochromatic
#230ED6 #4431F1 #786AF5 #ACA3F9 #E0DDFD

Accessibility & contrast

On white

4.05
#786AF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#786AF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AF5
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AF5#FFFFFF#000000##000000
##786AF51.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FA
Deuteranopia (green-blind)
#0079F2
Tritanopia (blue-blind)
#468AA5
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786af5;
/* rgb */ color: rgb(120, 106, 245);
/* oklch */ color: oklch(61.0% 0.201 283.3);
Tailwind
colors: {
  custom: {
    50: '#a895f9',
    500: '#786af5',
    950: '#000000',
  },
}
SCSS
$custom: #786af5;
$custom-light: #a895f9;
$custom-dark: #000000;
JSON
{
  "hex": "#786af5",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 245
  },
  "hsl": {
    "h": 246.043,
    "s": 87.421,
    "l": 68.824
  },
  "oklch": {
    "l": 0.61034,
    "c": 0.20058,
    "h": 283.3
  },
  "luminance": 0.20894
}

Semantic roles & 50–950 ramp

primary
#786AF5
secondary
#EEF2C9
accent
#E402CD
background
#FAF9FF
surface
#F5F1FF
border
#CFCBD7
text
#110D17
muted
#807E85

Preview Lab

Preview with #786AF5

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

Preview Lab → · Contrast checker → · Palette generator →

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