#786DFB#786DFB

#786DFB is a mid, highly saturated blue. Relative luminance 0.219; OKLCH L 62.0% C 0.204 H 282.1°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#786DFB
RGBrgb(120, 109, 251)
HSLhsl(245, 95%, 71%)
HSVhsv(245, 57%, 98%)
CMYKcmyk(52.2%, 56.6%, 0%, 1.6%)
CIE-LABlab(53.91, 41.41, -69.80)
CIE-LCHlch(53.91, 81.16, 300.68°)
OKLaboklab(61.96% 0.0429 -0.1999)
OKLCHoklch(61.96% 0.204 282.1)
XYZxyz(30.6216, 21.8936, 93.8604)
Luminance0.2190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DFB #F0FB6D
analogous
#6DA9FB #786DFB #BF6DFB
triadic
#786DFB #FB786D #6DFB78
tetradic
#786DFB #FB6DA9 #F0FB6D #6DFBBF
square
#786DFB #FB6DA9 #F0FB6D #6DFBBF
split-complementary
#786DFB #FBBF6D #A9FB6D
monochromatic
#1806E7 #4131F9 #786DFB #AFA9FD #E3E1FE

Accessibility & contrast

On white

3.90
#786DFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#786DFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DFB
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DFB#FFFFFF#000000##000000
##786DFB1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0086FF
Deuteranopia (green-blind)
#007CF8
Tritanopia (blue-blind)
#408EAA
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #786dfb;
/* rgb */ color: rgb(120, 109, 251);
/* oklch */ color: oklch(62.0% 0.204 282.1);
Tailwind
colors: {
  custom: {
    50: '#a897fd',
    500: '#786dfb',
    950: '#000000',
  },
}
SCSS
$custom: #786dfb;
$custom-light: #a897fd;
$custom-dark: #000000;
JSON
{
  "hex": "#786dfb",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 251
  },
  "hsl": {
    "h": 244.648,
    "s": 94.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.61963,
    "c": 0.20442,
    "h": 282.1
  },
  "luminance": 0.21895
}

Semantic roles & 50–950 ramp

primary
#786DFB
secondary
#F2F5CF
accent
#E600D4
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #786DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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