#786DE5#786DE5

#786DE5 is a mid, vivid blue. Relative luminance 0.206; OKLCH L 60.5% C 0.176 H 284.0°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#786DE5
RGBrgb(120, 109, 229)
HSLhsl(246, 70%, 66%)
HSVhsv(246, 52%, 90%)
CMYKcmyk(47.6%, 52.4%, 0%, 10.2%)
CIE-LABlab(52.49, 34.88, -59.82)
CIE-LCHlch(52.49, 69.25, 300.25°)
OKLaboklab(60.45% 0.0424 -0.1705)
OKLCHoklch(60.45% 0.176 284)
XYZxyz(27.3530, 20.5862, 76.6458)
Luminance0.2059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DE5 #DAE56D
analogous
#6D9EE5 #786DE5 #B46DE5
triadic
#786DE5 #E5786D #6DE578
tetradic
#786DE5 #E56D9E #DAE56D #6DE5B4
square
#786DE5 #E56D9E #DAE56D #6DE5B4
split-complementary
#786DE5 #E5B46D #9EE56D
monochromatic
#2E21B7 #4839DC #786DE5 #A8A1EE #D8D5F8

Accessibility & contrast

On white

4.10
#786DE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#786DE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DE5
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DE5#FFFFFF#000000##000000
##786DE51.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3081E9
Deuteranopia (green-blind)
#2979E2
Tritanopia (blue-blind)
#52879F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786de5;
/* rgb */ color: rgb(120, 109, 229);
/* oklch */ color: oklch(60.5% 0.176 284.0);
Tailwind
colors: {
  custom: {
    50: '#a697ee',
    500: '#786de5',
    950: '#000000',
  },
}
SCSS
$custom: #786de5;
$custom-light: #a697ee;
$custom-dark: #000000;
JSON
{
  "hex": "#786de5",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 229
  },
  "hsl": {
    "h": 245.5,
    "s": 69.767,
    "l": 66.275
  },
  "oklch": {
    "l": 0.60454,
    "c": 0.1757,
    "h": 284
  },
  "luminance": 0.20587
}

Semantic roles & 50–950 ramp

primary
#786DE5
secondary
#E7EAC3
accent
#D214C0
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786DE5

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

Preview Lab → · Contrast checker → · Palette generator →

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