#786ED5#786ED5

#786ED5 is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.6% C 0.153 H 285.2°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#786ED5
RGBrgb(120, 110, 213)
HSLhsl(246, 55%, 63%)
HSVhsv(246, 48%, 84%)
CMYKcmyk(43.7%, 48.4%, 0%, 16.5%)
CIE-LABlab(51.78, 29.61, -51.93)
CIE-LCHlch(51.78, 59.78, 299.69°)
OKLaboklab(59.61% 0.04 -0.1473)
OKLCHoklch(59.61% 0.153 285.2)
XYZxyz(25.3284, 19.9480, 65.4537)
Luminance0.1995 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786ED5 #CBD56E
analogous
#6E97D5 #786ED5 #AB6ED5
triadic
#786ED5 #D5786E #6ED578
tetradic
#786ED5 #D56E97 #CBD56E #6ED5AB
square
#786ED5 #D56E97 #CBD56E #6ED5AB
split-complementary
#786ED5 #D5AB6E #97D56E
monochromatic
#382D9C #4C3FC7 #786ED5 #A49DE3 #D0CDF0

Accessibility & contrast

On white

4.21
#786ED5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#786ED5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786ED5
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786ED5#FFFFFF#000000##000000
##786ED51.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#437ED9
Deuteranopia (green-blind)
#4078D3
Tritanopia (blue-blind)
#5B8397
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786ed5;
/* rgb */ color: rgb(120, 110, 213);
/* oklch */ color: oklch(59.6% 0.153 285.2);
Tailwind
colors: {
  custom: {
    50: '#a497e2',
    500: '#786ed5',
    950: '#000000',
  },
}
SCSS
$custom: #786ed5;
$custom-light: #a497e2;
$custom-dark: #000000;
JSON
{
  "hex": "#786ed5",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 213
  },
  "hsl": {
    "h": 245.825,
    "s": 55.08,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59611,
    "c": 0.15267,
    "h": 285.2
  },
  "luminance": 0.19949
}

Semantic roles & 50–950 ramp

primary
#786ED5
secondary
#DEE2BD
accent
#C323B3
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #786ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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