#786AEF#786AEF

#786AEF is a mid, vivid blue. Relative luminance 0.205; OKLCH L 60.6% C 0.193 H 283.8°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#786AEF
RGBrgb(120, 106, 239)
HSLhsl(246, 81%, 68%)
HSVhsv(246, 56%, 94%)
CMYKcmyk(49.8%, 55.6%, 0%, 6.3%)
CIE-LABlab(52.43, 39.59, -65.52)
CIE-LCHlch(52.43, 76.55, 301.14°)
OKLaboklab(60.61% 0.046 -0.1873)
OKLCHoklch(60.61% 0.193 283.8)
XYZxyz(28.4751, 20.5317, 84.1072)
Luminance0.2053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AEF #E1EF6A
analogous
#6A9EEF #786AEF #BB6AEF
triadic
#786AEF #EF786A #6AEF78
tetradic
#786AEF #EF6A9E #E1EF6A #6AEFBB
square
#786AEF #EF6A9E #E1EF6A #6AEFBB
split-complementary
#786AEF #EFBB6A #9EEF6A
monochromatic
#2816C9 #4633E9 #786AEF #AAA1F5 #DCD9FB

Accessibility & contrast

On white

4.11
#786AEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#786AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786AEF
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AEF#FFFFFF#000000##000000
##786AEF1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0B81F3
Deuteranopia (green-blind)
#0079EC
Tritanopia (blue-blind)
#4B88A2
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786aef;
/* rgb */ color: rgb(120, 106, 239);
/* oklch */ color: oklch(60.6% 0.193 283.8);
Tailwind
colors: {
  custom: {
    50: '#a795f5',
    500: '#786aef',
    950: '#000000',
  },
}
SCSS
$custom: #786aef;
$custom-light: #a795f5;
$custom-dark: #000000;
JSON
{
  "hex": "#786aef",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 239
  },
  "hsl": {
    "h": 246.316,
    "s": 80.606,
    "l": 67.647
  },
  "oklch": {
    "l": 0.60613,
    "c": 0.19285,
    "h": 283.8
  },
  "luminance": 0.20533
}

Semantic roles & 50–950 ramp

primary
#786AEF
secondary
#EBEFC6
accent
#DD09C7
background
#FAF9FF
surface
#F4F1FE
border
#CECBD6
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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