#786EE7#786EE7

#786EE7 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.8% C 0.177 H 283.5°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#786EE7
RGBrgb(120, 110, 231)
HSLhsl(245, 72%, 67%)
HSVhsv(245, 52%, 91%)
CMYKcmyk(48.1%, 52.4%, 0%, 9.4%)
CIE-LABlab(52.85, 34.88, -60.36)
CIE-LCHlch(52.85, 69.72, 300.02°)
OKLaboklab(60.76% 0.0414 -0.1721)
OKLCHoklch(60.76% 0.177 283.5)
XYZxyz(27.7412, 20.9131, 78.1607)
Luminance0.2091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EE7 #DDE76E
analogous
#6EA1E7 #786EE7 #B56EE7
triadic
#786EE7 #E7786E #6EE778
tetradic
#786EE7 #E76EA1 #DDE76E #6EE7B5
square
#786EE7 #E76EA1 #DDE76E #6EE7B5
split-complementary
#786EE7 #E7B56E #A1E76E
monochromatic
#2C1FBC #4739DE #786EE7 #A9A3F0 #DAD7F8

Accessibility & contrast

On white

4.05
#786EE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#786EE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EE7
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EE7#FFFFFF#000000##000000
##786EE71.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3082EB
Deuteranopia (green-blind)
#287AE4
Tritanopia (blue-blind)
#5089A0
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786ee7;
/* rgb */ color: rgb(120, 110, 231);
/* oklch */ color: oklch(60.8% 0.177 283.5);
Tailwind
colors: {
  custom: {
    50: '#a698ef',
    500: '#786ee7',
    950: '#000000',
  },
}
SCSS
$custom: #786ee7;
$custom-light: #a698ef;
$custom-dark: #000000;
JSON
{
  "hex": "#786ee7",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 231
  },
  "hsl": {
    "h": 244.959,
    "s": 71.598,
    "l": 66.863
  },
  "oklch": {
    "l": 0.60763,
    "c": 0.177,
    "h": 283.5
  },
  "luminance": 0.20914
}

Semantic roles & 50–950 ramp

primary
#786EE7
secondary
#E9ECC5
accent
#D412C4
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786EE7

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

Preview Lab → · Contrast checker → · Palette generator →

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