#786ED7#786ED7

#786ED7 is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.7% C 0.155 H 285.0°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#786ED7
RGBrgb(120, 110, 215)
HSLhsl(246, 57%, 64%)
HSVhsv(246, 49%, 84%)
CMYKcmyk(44.2%, 48.8%, 0%, 15.7%)
CIE-LABlab(51.89, 30.19, -52.88)
CIE-LCHlch(51.89, 60.89, 299.72°)
OKLaboklab(59.74% 0.0402 -0.1501)
OKLCHoklch(59.74% 0.155 285)
XYZxyz(25.5838, 20.0502, 66.7988)
Luminance0.2005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786ED7 #CDD76E
analogous
#6E98D7 #786ED7 #AC6ED7
triadic
#786ED7 #D7786E #6ED778
tetradic
#786ED7 #D76E98 #CDD76E #6ED7AC
square
#786ED7 #D76E98 #CDD76E #6ED7AC
split-complementary
#786ED7 #D7AC6E #98D76E
monochromatic
#372C9F #4B3ECA #786ED7 #A59EE4 #D1CEF1

Accessibility & contrast

On white

4.19
#786ED7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#786ED7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786ED7
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786ED7#FFFFFF#000000##000000
##786ED71.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#417FDB
Deuteranopia (green-blind)
#3E79D5
Tritanopia (blue-blind)
#5A8498
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786ed7;
/* rgb */ color: rgb(120, 110, 215);
/* oklch */ color: oklch(59.7% 0.155 285.0);
Tailwind
colors: {
  custom: {
    50: '#a497e4',
    500: '#786ed7',
    950: '#000000',
  },
}
SCSS
$custom: #786ed7;
$custom-light: #a497e4;
$custom-dark: #000000;
JSON
{
  "hex": "#786ed7",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 215
  },
  "hsl": {
    "h": 245.714,
    "s": 56.757,
    "l": 63.725
  },
  "oklch": {
    "l": 0.59735,
    "c": 0.15541,
    "h": 285
  },
  "luminance": 0.20051
}

Semantic roles & 50–950 ramp

primary
#786ED7
secondary
#DFE3BE
accent
#C421B5
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D15
muted
#7F7E84

Preview Lab

Preview with #786ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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