#786EF7#786EF7

#786EF7 is a mid, vivid blue. Relative luminance 0.219; OKLCH L 61.9% C 0.198 H 282.2°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#786EF7
RGBrgb(120, 110, 247)
HSLhsl(244, 90%, 70%)
HSVhsv(244, 55%, 97%)
CMYKcmyk(51.4%, 55.5%, 0%, 3.1%)
CIE-LABlab(53.88, 39.64, -67.64)
CIE-LCHlch(53.88, 78.40, 300.37°)
OKLaboklab(61.85% 0.0419 -0.1935)
OKLCHoklch(61.85% 0.198 282.2)
XYZxyz(30.1050, 21.8586, 90.6105)
Luminance0.2186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EF7 #EDF76E
analogous
#6EA8F7 #786EF7 #BD6EF7
triadic
#786EF7 #F7786E #6EF778
tetradic
#786EF7 #F76EA8 #EDF76E #6EF7BD
square
#786EF7 #F76EA8 #EDF76E #6EF7BD
split-complementary
#786EF7 #F7BD6E #A8F76E
monochromatic
#1C0CDE #4234F4 #786EF7 #AEA8FA #E4E2FD

Accessibility & contrast

On white

3.91
#786EF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#786EF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EF7
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EF7#FFFFFF#000000##000000
##786EF71.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0785FC
Deuteranopia (green-blind)
#007CF4
Tritanopia (blue-blind)
#448DA8
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #786ef7;
/* rgb */ color: rgb(120, 110, 247);
/* oklch */ color: oklch(61.9% 0.198 282.2);
Tailwind
colors: {
  custom: {
    50: '#a898fb',
    500: '#786ef7',
    950: '#000000',
  },
}
SCSS
$custom: #786ef7;
$custom-light: #a898fb;
$custom-dark: #000000;
JSON
{
  "hex": "#786ef7",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 247
  },
  "hsl": {
    "h": 244.38,
    "s": 89.542,
    "l": 70
  },
  "oklch": {
    "l": 0.61851,
    "c": 0.19798,
    "h": 282.2
  },
  "luminance": 0.2186
}

Semantic roles & 50–950 ramp

primary
#786EF7
secondary
#F1F4CD
accent
#E600D5
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110D17
muted
#807E85

Preview Lab

Preview with #786EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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