#786DF0#786DF0

#786DF0 is a mid, vivid blue. Relative luminance 0.212; OKLCH L 61.2% C 0.190 H 283.0°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#786DF0
RGBrgb(120, 109, 240)
HSLhsl(245, 81%, 68%)
HSVhsv(245, 55%, 94%)
CMYKcmyk(50%, 54.6%, 0%, 5.9%)
CIE-LABlab(53.19, 38.14, -64.86)
CIE-LCHlch(53.19, 75.24, 300.46°)
OKLaboklab(61.2% 0.0428 -0.1853)
OKLCHoklch(61.2% 0.19 283)
XYZxyz(28.9378, 21.2201, 84.9923)
Luminance0.2122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DF0 #E5F06D
analogous
#6DA3F0 #786DF0 #B96DF0
triadic
#786DF0 #F0786D #6DF078
tetradic
#786DF0 #F06DA3 #E5F06D #6DF0B9
square
#786DF0 #F06DA3 #E5F06D #6DF0B9
split-complementary
#786DF0 #F0B96D #A3F06D
monochromatic
#2515CD #4536EA #786DF0 #ABA4F6 #DFDCFB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786DF0#FFFFFF#000000##000000
##786DF01.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)
#1B83F4
Deuteranopia (green-blind)
#067BED
Tritanopia (blue-blind)
#4A8BA4
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786df0;
/* rgb */ color: rgb(120, 109, 240);
/* oklch */ color: oklch(61.2% 0.190 283.0);
Tailwind
colors: {
  custom: {
    50: '#a797f6',
    500: '#786df0',
    950: '#000000',
  },
}
SCSS
$custom: #786df0;
$custom-light: #a797f6;
$custom-dark: #000000;
JSON
{
  "hex": "#786df0",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 240
  },
  "hsl": {
    "h": 245.038,
    "s": 81.366,
    "l": 68.431
  },
  "oklch": {
    "l": 0.61195,
    "c": 0.1902,
    "h": 283
  },
  "luminance": 0.21222
}

Semantic roles & 50–950 ramp

primary
#786DF0
secondary
#EDF0C9
accent
#DE08CC
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786DF0

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

Preview Lab → · Contrast checker → · Palette generator →

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