#786BFB#786BFB

#786BFB is a mid, highly saturated blue. Relative luminance 0.215; OKLCH L 61.6% C 0.207 H 282.5°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#786BFB
RGBrgb(120, 107, 251)
HSLhsl(245, 95%, 70%)
HSVhsv(245, 57%, 98%)
CMYKcmyk(52.2%, 57.4%, 0%, 1.6%)
CIE-LABlab(53.46, 42.57, -70.53)
CIE-LCHlch(53.46, 82.39, 301.12°)
OKLaboklab(61.63% 0.045 -0.202)
OKLCHoklch(61.63% 0.207 282.5)
XYZxyz(30.4107, 21.4717, 93.7901)
Luminance0.2147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BFB #EEFB6B
analogous
#6BA6FB #786BFB #C06BFB
triadic
#786BFB #FB786B #6BFB78
tetradic
#786BFB #FB6BA6 #EEFB6B #6BFBC0
square
#786BFB #FB6BA6 #EEFB6B #6BFBC0
split-complementary
#786BFB #FBC06B #A6FB6B
monochromatic
#1A06E5 #422FF9 #786BFB #AEA7FD #E4E1FE

Accessibility & contrast

On white

3.97
#786BFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#786BFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BFB
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BFB#FFFFFF#000000##000000
##786BFB1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #786bfb;
/* rgb */ color: rgb(120, 107, 251);
/* oklch */ color: oklch(61.6% 0.207 282.5);
Tailwind
colors: {
  custom: {
    50: '#a896fe',
    500: '#786bfb',
    950: '#000000',
  },
}
SCSS
$custom: #786bfb;
$custom-light: #a896fe;
$custom-dark: #000000;
JSON
{
  "hex": "#786bfb",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 251
  },
  "hsl": {
    "h": 245.417,
    "s": 94.737,
    "l": 70.196
  },
  "oklch": {
    "l": 0.61629,
    "c": 0.20696,
    "h": 282.5
  },
  "luminance": 0.21473
}

Semantic roles & 50–950 ramp

primary
#786BFB
secondary
#F1F5CD
accent
#E600D1
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #786BFB

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

Preview Lab → · Contrast checker → · Palette generator →

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