#786EE2#786EE2

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

Color values

HEX#786EE2
RGBrgb(120, 110, 226)
HSLhsl(245, 67%, 66%)
HSVhsv(245, 51%, 89%)
CMYKcmyk(46.9%, 51.3%, 0%, 11.4%)
CIE-LABlab(52.55, 33.40, -58.05)
CIE-LCHlch(52.55, 66.97, 299.92°)
OKLaboklab(60.44% 0.0411 -0.1653)
OKLCHoklch(60.44% 0.17 284)
XYZxyz(27.0451, 20.6346, 74.4946)
Luminance0.2064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EE2 #D8E26E
analogous
#6E9EE2 #786EE2 #B26EE2
triadic
#786EE2 #E2786E #6EE278
tetradic
#786EE2 #E26E9E #D8E26E #6EE2B2
square
#786EE2 #E26E9E #D8E26E #6EE2B2
split-complementary
#786EE2 #E2B26E #9EE26E
monochromatic
#3024B2 #493BD8 #786EE2 #A7A1EC #D7D4F6

Accessibility & contrast

On white

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

On black

5.13
#786EE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EE2
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EE2#FFFFFF#000000##000000
##786EE21.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3681E6
Deuteranopia (green-blind)
#307ADF
Tritanopia (blue-blind)
#54879E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786ee2;
/* rgb */ color: rgb(120, 110, 226);
/* oklch */ color: oklch(60.4% 0.170 284.0);
Tailwind
colors: {
  custom: {
    50: '#a597ec',
    500: '#786ee2',
    950: '#000000',
  },
}
SCSS
$custom: #786ee2;
$custom-light: #a597ec;
$custom-dark: #000000;
JSON
{
  "hex": "#786ee2",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 226
  },
  "hsl": {
    "h": 245.172,
    "s": 66.667,
    "l": 65.882
  },
  "oklch": {
    "l": 0.60435,
    "c": 0.17032,
    "h": 284
  },
  "luminance": 0.20636
}

Semantic roles & 50–950 ramp

primary
#786EE2
secondary
#E6E9C3
accent
#CF17BF
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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