#786BF6#786BF6

#786BF6 is a mid, highly saturated blue. Relative luminance 0.212; OKLCH L 61.3% C 0.201 H 283.0°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#786BF6
RGBrgb(120, 107, 246)
HSLhsl(246, 89%, 69%)
HSVhsv(246, 57%, 96%)
CMYKcmyk(51.2%, 56.5%, 0%, 3.5%)
CIE-LABlab(53.12, 41.09, -68.30)
CIE-LCHlch(53.12, 79.71, 301.03°)
OKLaboklab(61.27% 0.045 -0.1955)
OKLCHoklch(61.27% 0.201 283)
XYZxyz(29.6329, 21.1606, 89.6939)
Luminance0.2116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BF6 #E9F66B
analogous
#6BA3F6 #786BF6 #BE6BF6
triadic
#786BF6 #F6786B #6BF678
tetradic
#786BF6 #F66BA3 #E9F66B #6BF6BE
square
#786BF6 #F66BA3 #E9F66B #6BF6BE
split-complementary
#786BF6 #F6BE6B #A3F66B
monochromatic
#200DD9 #4331F2 #786BF6 #ADA5FA #E1DEFD

Accessibility & contrast

On white

4.01
#786BF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#786BF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BF6
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BF6#FFFFFF#000000##000000
##786BF61.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FB
Deuteranopia (green-blind)
#007AF3
Tritanopia (blue-blind)
#458BA6
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786bf6;
/* rgb */ color: rgb(120, 107, 246);
/* oklch */ color: oklch(61.3% 0.201 283.0);
Tailwind
colors: {
  custom: {
    50: '#a896fa',
    500: '#786bf6',
    950: '#000000',
  },
}
SCSS
$custom: #786bf6;
$custom-light: #a896fa;
$custom-dark: #000000;
JSON
{
  "hex": "#786bf6",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 246
  },
  "hsl": {
    "h": 245.612,
    "s": 88.535,
    "l": 69.216
  },
  "oklch": {
    "l": 0.61273,
    "c": 0.20057,
    "h": 283
  },
  "luminance": 0.21162
}

Semantic roles & 50–950 ramp

primary
#786BF6
secondary
#EFF3CA
accent
#E500D0
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110D17
muted
#807E85

Preview Lab

Preview with #786BF6

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

Preview Lab → · Contrast checker → · Palette generator →

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