#786CF6#786CF6

#786CF6 is a mid, vivid blue. Relative luminance 0.214; OKLCH L 61.4% C 0.199 H 282.7°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#786CF6
RGBrgb(120, 108, 246)
HSLhsl(245, 88%, 69%)
HSVhsv(245, 56%, 96%)
CMYKcmyk(51.2%, 56.1%, 0%, 3.5%)
CIE-LABlab(53.35, 40.50, -67.94)
CIE-LCHlch(53.35, 79.09, 300.80°)
OKLaboklab(61.44% 0.044 -0.1944)
OKLCHoklch(61.44% 0.199 282.7)
XYZxyz(29.7378, 21.3704, 89.7288)
Luminance0.2137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CF6 #EAF66C
analogous
#6CA5F6 #786CF6 #BD6CF6
triadic
#786CF6 #F6786C #6CF678
tetradic
#786CF6 #F66CA5 #EAF66C #6CF6BD
square
#786CF6 #F66CA5 #EAF66C #6CF6BD
split-complementary
#786CF6 #F6BD6C #A5F66C
monochromatic
#1F0DDA #4332F2 #786CF6 #ADA6FA #E2DFFD

Accessibility & contrast

On white

3.98
#786CF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#786CF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CF6
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CF6#FFFFFF#000000##000000
##786CF61.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FB
Deuteranopia (green-blind)
#007BF3
Tritanopia (blue-blind)
#458CA7
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786cf6;
/* rgb */ color: rgb(120, 108, 246);
/* oklch */ color: oklch(61.4% 0.199 282.7);
Tailwind
colors: {
  custom: {
    50: '#a896fa',
    500: '#786cf6',
    950: '#000000',
  },
}
SCSS
$custom: #786cf6;
$custom-light: #a896fa;
$custom-dark: #000000;
JSON
{
  "hex": "#786cf6",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 246
  },
  "hsl": {
    "h": 245.217,
    "s": 88.462,
    "l": 69.412
  },
  "oklch": {
    "l": 0.61441,
    "c": 0.19928,
    "h": 282.7
  },
  "luminance": 0.21372
}

Semantic roles & 50–950 ramp

primary
#786CF6
secondary
#EFF3CB
accent
#E500D1
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110D17
muted
#807E85

Preview Lab

Preview with #786CF6

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

Preview Lab → · Contrast checker → · Palette generator →

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