#786BE5#786BE5

#786BE5 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 60.1% C 0.178 H 284.5°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#786BE5
RGBrgb(120, 107, 229)
HSLhsl(246, 70%, 66%)
HSVhsv(246, 53%, 90%)
CMYKcmyk(47.6%, 53.3%, 0%, 10.2%)
CIE-LABlab(52.02, 36.06, -60.58)
CIE-LCHlch(52.02, 70.50, 300.76°)
OKLaboklab(60.1% 0.0447 -0.1727)
OKLCHoklch(60.1% 0.178 284.5)
XYZxyz(27.1421, 20.1643, 76.5755)
Luminance0.2017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BE5 #D8E56B
analogous
#6B9BE5 #786BE5 #B56BE5
triadic
#786BE5 #E5786B #6BE578
tetradic
#786BE5 #E56B9B #D8E56B #6BE5B5
square
#786BE5 #E56B9B #D8E56B #6BE5B5
split-complementary
#786BE5 #E5B56B #9BE56B
monochromatic
#3020B6 #4937DC #786BE5 #A79FEE #D7D3F7

Accessibility & contrast

On white

4.17
#786BE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#786BE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BE5
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BE5#FFFFFF#000000##000000
##786BE51.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A80E9
Deuteranopia (green-blind)
#2378E2
Tritanopia (blue-blind)
#52869E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786be5;
/* rgb */ color: rgb(120, 107, 229);
/* oklch */ color: oklch(60.1% 0.178 284.5);
Tailwind
colors: {
  custom: {
    50: '#a695ee',
    500: '#786be5',
    950: '#000000',
  },
}
SCSS
$custom: #786be5;
$custom-light: #a695ee;
$custom-dark: #000000;
JSON
{
  "hex": "#786be5",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 229
  },
  "hsl": {
    "h": 246.393,
    "s": 70.115,
    "l": 65.882
  },
  "oklch": {
    "l": 0.60103,
    "c": 0.17842,
    "h": 284.5
  },
  "luminance": 0.20166
}

Semantic roles & 50–950 ramp

primary
#786BE5
secondary
#E6EAC2
accent
#D213BE
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786BE5

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

Preview Lab → · Contrast checker → · Palette generator →

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