#786CF5#786CF5

#786CF5 is a mid, vivid blue. Relative luminance 0.213; OKLCH L 61.4% C 0.198 H 282.8°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#786CF5
RGBrgb(120, 108, 245)
HSLhsl(245, 87%, 69%)
HSVhsv(245, 56%, 96%)
CMYKcmyk(51%, 55.9%, 0%, 3.9%)
CIE-LABlab(53.29, 40.21, -67.49)
CIE-LCHlch(53.29, 78.56, 300.79°)
OKLaboklab(61.37% 0.044 -0.193)
OKLCHoklch(61.37% 0.198 282.8)
XYZxyz(29.5847, 21.3091, 88.9227)
Luminance0.2131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CF5 #E9F56C
analogous
#6CA5F5 #786CF5 #BC6CF5
triadic
#786CF5 #F5786C #6CF578
tetradic
#786CF5 #F56CA5 #E9F56C #6CF5BC
square
#786CF5 #F56CA5 #E9F56C #6CF5BC
split-complementary
#786CF5 #F5BC6C #A5F56C
monochromatic
#200FD8 #4333F1 #786CF5 #ADA5F9 #E1DFFD

Accessibility & contrast

On white

3.99
#786CF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#786CF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CF5
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CF5#FFFFFF#000000##000000
##786CF51.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #786cf5;
/* rgb */ color: rgb(120, 108, 245);
/* oklch */ color: oklch(61.4% 0.198 282.8);
Tailwind
colors: {
  custom: {
    50: '#a896f9',
    500: '#786cf5',
    950: '#000000',
  },
}
SCSS
$custom: #786cf5;
$custom-light: #a896f9;
$custom-dark: #000000;
JSON
{
  "hex": "#786cf5",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 245
  },
  "hsl": {
    "h": 245.255,
    "s": 87.261,
    "l": 69.216
  },
  "oklch": {
    "l": 0.61371,
    "c": 0.19799,
    "h": 282.8
  },
  "luminance": 0.21311
}

Semantic roles & 50–950 ramp

primary
#786CF5
secondary
#EFF2CA
accent
#E402D0
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786CF5

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

Preview Lab → · Contrast checker → · Palette generator →

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