#786CFB#786CFB

#786CFB is a mid, highly saturated blue. Relative luminance 0.217; OKLCH L 61.8% C 0.206 H 282.3°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#786CFB
RGBrgb(120, 108, 251)
HSLhsl(245, 95%, 70%)
HSVhsv(245, 57%, 98%)
CMYKcmyk(52.2%, 57%, 0%, 1.6%)
CIE-LABlab(53.69, 41.99, -70.17)
CIE-LCHlch(53.69, 81.78, 300.90°)
OKLaboklab(61.8% 0.044 -0.2009)
OKLCHoklch(61.8% 0.206 282.3)
XYZxyz(30.5155, 21.6815, 93.8251)
Luminance0.2168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CFB #EFFB6C
analogous
#6CA7FB #786CFB #BF6CFB
triadic
#786CFB #FB786C #6CFB78
tetradic
#786CFB #FB6CA7 #EFFB6C #6CFBBF
square
#786CFB #FB6CA7 #EFFB6C #6CFBBF
split-complementary
#786CFB #FBBF6C #A7FB6C
monochromatic
#1906E6 #4130F9 #786CFB #AFA8FD #E4E1FE

Accessibility & contrast

On white

3.94
#786CFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#786CFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CFB
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CFB#FFFFFF#000000##000000
##786CFB1.003.945.345.34
#FFFFFF3.941.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0085FF
Deuteranopia (green-blind)
#007BF8
Tritanopia (blue-blind)
#408DA9
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #786cfb;
/* rgb */ color: rgb(120, 108, 251);
/* oklch */ color: oklch(61.8% 0.206 282.3);
Tailwind
colors: {
  custom: {
    50: '#a896fe',
    500: '#786cfb',
    950: '#000000',
  },
}
SCSS
$custom: #786cfb;
$custom-light: #a896fe;
$custom-dark: #000000;
JSON
{
  "hex": "#786cfb",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 251
  },
  "hsl": {
    "h": 245.035,
    "s": 94.702,
    "l": 70.392
  },
  "oklch": {
    "l": 0.61795,
    "c": 0.20569,
    "h": 282.3
  },
  "luminance": 0.21683
}

Semantic roles & 50–950 ramp

primary
#786CFB
secondary
#F2F5CE
accent
#E600D2
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #786CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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