#786BF5#786BF5

#786BF5 is a mid, vivid blue. Relative luminance 0.211; OKLCH L 61.2% C 0.199 H 283.1°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#786BF5
RGBrgb(120, 107, 245)
HSLhsl(246, 87%, 69%)
HSVhsv(246, 56%, 96%)
CMYKcmyk(51%, 56.3%, 0%, 3.9%)
CIE-LABlab(53.06, 40.79, -67.85)
CIE-LCHlch(53.06, 79.17, 301.01°)
OKLaboklab(61.2% 0.045 -0.1941)
OKLCHoklch(61.2% 0.199 283.1)
XYZxyz(29.4799, 21.0994, 88.8877)
Luminance0.2110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BF5 #E8F56B
analogous
#6BA3F5 #786BF5 #BD6BF5
triadic
#786BF5 #F5786B #6BF578
tetradic
#786BF5 #F56BA3 #E8F56B #6BF5BD
square
#786BF5 #F56BA3 #E8F56B #6BF5BD
split-complementary
#786BF5 #F5BD6B #A3F56B
monochromatic
#210FD7 #4432F1 #786BF5 #ACA4F9 #E1DEFD

Accessibility & contrast

On white

4.02
#786BF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##786BF5#FFFFFF#000000##000000
##786BF51.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FA
Deuteranopia (green-blind)
#007AF2
Tritanopia (blue-blind)
#468BA6
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786bf5;
/* rgb */ color: rgb(120, 107, 245);
/* oklch */ color: oklch(61.2% 0.199 283.1);
Tailwind
colors: {
  custom: {
    50: '#a896f9',
    500: '#786bf5',
    950: '#000000',
  },
}
SCSS
$custom: #786bf5;
$custom-light: #a896f9;
$custom-dark: #000000;
JSON
{
  "hex": "#786bf5",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 245
  },
  "hsl": {
    "h": 245.652,
    "s": 87.342,
    "l": 69.02
  },
  "oklch": {
    "l": 0.61202,
    "c": 0.19929,
    "h": 283.1
  },
  "luminance": 0.21101
}

Semantic roles & 50–950 ramp

primary
#786BF5
secondary
#EEF2CA
accent
#E402CF
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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