#786DF7#786DF7

#786DF7 is a mid, vivid blue. Relative luminance 0.216; OKLCH L 61.7% C 0.199 H 282.4°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#786DF7
RGBrgb(120, 109, 247)
HSLhsl(245, 90%, 70%)
HSVhsv(245, 56%, 97%)
CMYKcmyk(51.4%, 55.9%, 0%, 3.1%)
CIE-LABlab(53.65, 40.22, -68.01)
CIE-LCHlch(53.65, 79.02, 300.60°)
OKLaboklab(61.68% 0.0429 -0.1946)
OKLCHoklch(61.68% 0.199 282.4)
XYZxyz(29.9977, 21.6441, 90.5747)
Luminance0.2165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DF7 #ECF76D
analogous
#6DA7F7 #786DF7 #BD6DF7
triadic
#786DF7 #F7786D #6DF778
tetradic
#786DF7 #F76DA7 #ECF76D #6DF7BD
square
#786DF7 #F76DA7 #ECF76D #6DF7BD
split-complementary
#786DF7 #F7BD6D #A7F76D
monochromatic
#1D0CDD #4233F4 #786DF7 #AEA7FA #E3E1FD

Accessibility & contrast

On white

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

On black

5.33
#786DF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DF7
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DF7#FFFFFF#000000##000000
##786DF71.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0085FC
Deuteranopia (green-blind)
#007BF4
Tritanopia (blue-blind)
#448DA8
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #786df7;
/* rgb */ color: rgb(120, 109, 247);
/* oklch */ color: oklch(61.7% 0.199 282.4);
Tailwind
colors: {
  custom: {
    50: '#a897fb',
    500: '#786df7',
    950: '#000000',
  },
}
SCSS
$custom: #786df7;
$custom-light: #a897fb;
$custom-dark: #000000;
JSON
{
  "hex": "#786df7",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 247
  },
  "hsl": {
    "h": 244.783,
    "s": 89.61,
    "l": 69.804
  },
  "oklch": {
    "l": 0.61681,
    "c": 0.19928,
    "h": 282.4
  },
  "luminance": 0.21646
}

Semantic roles & 50–950 ramp

primary
#786DF7
secondary
#F0F3CC
accent
#E600D3
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110D17
muted
#807E85

Preview Lab

Preview with #786DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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