#786BF7#786BF7

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

Color values

HEX#786BF7
RGBrgb(120, 107, 247)
HSLhsl(246, 90%, 69%)
HSVhsv(246, 57%, 97%)
CMYKcmyk(51.4%, 56.7%, 0%, 3.1%)
CIE-LABlab(53.19, 41.38, -68.75)
CIE-LCHlch(53.19, 80.25, 301.05°)
OKLaboklab(61.34% 0.045 -0.1968)
OKLCHoklch(61.34% 0.202 282.9)
XYZxyz(29.7868, 21.2222, 90.5044)
Luminance0.2122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BF7 #EAF76B
analogous
#6BA4F7 #786BF7 #BE6BF7
triadic
#786BF7 #F7786B #6BF778
tetradic
#786BF7 #F76BA4 #EAF76B #6BF7BE
square
#786BF7 #F76BA4 #EAF76B #6BF7BE
split-complementary
#786BF7 #F7BE6B #A4F76B
monochromatic
#1F0CDC #4331F4 #786BF7 #ADA5FA #E2DFFD

Accessibility & contrast

On white

4.00
#786BF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#786BF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BF7
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BF7#FFFFFF#000000##000000
##786BF71.004.005.245.24
#FFFFFF4.001.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FC
Deuteranopia (green-blind)
#007AF4
Tritanopia (blue-blind)
#448BA7
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786bf7;
/* rgb */ color: rgb(120, 107, 247);
/* oklch */ color: oklch(61.3% 0.202 282.9);
Tailwind
colors: {
  custom: {
    50: '#a896fb',
    500: '#786bf7',
    950: '#000000',
  },
}
SCSS
$custom: #786bf7;
$custom-light: #a896fb;
$custom-dark: #000000;
JSON
{
  "hex": "#786bf7",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 247
  },
  "hsl": {
    "h": 245.571,
    "s": 89.744,
    "l": 69.412
  },
  "oklch": {
    "l": 0.61343,
    "c": 0.20186,
    "h": 282.9
  },
  "luminance": 0.21224
}

Semantic roles & 50–950 ramp

primary
#786BF7
secondary
#EFF3CB
accent
#E600D0
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110D17
muted
#807E85

Preview Lab

Preview with #786BF7

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

Preview Lab → · Contrast checker → · Palette generator →

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