#786BE4#786BE4

#786BE4 is a mid, vivid blue. Relative luminance 0.201; OKLCH L 60.0% C 0.177 H 284.6°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#786BE4
RGBrgb(120, 107, 228)
HSLhsl(246, 69%, 66%)
HSVhsv(246, 53%, 89%)
CMYKcmyk(47.4%, 53.1%, 0%, 10.6%)
CIE-LABlab(51.96, 35.77, -60.12)
CIE-LCHlch(51.96, 69.95, 300.75°)
OKLaboklab(60.04% 0.0446 -0.1714)
OKLCHoklch(60.04% 0.177 284.6)
XYZxyz(27.0029, 20.1086, 75.8423)
Luminance0.2011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BE4 #D7E46B
analogous
#6B9AE4 #786BE4 #B46BE4
triadic
#786BE4 #E4786B #6BE478
tetradic
#786BE4 #E46B9A #D7E46B #6BE4B4
square
#786BE4 #E46B9A #D7E46B #6BE4B4
split-complementary
#786BE4 #E4B46B #9AE46B
monochromatic
#3121B4 #4937DB #786BE4 #A79FED #D6D3F7

Accessibility & contrast

On white

4.18
#786BE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#786BE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BE4
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BE4#FFFFFF#000000##000000
##786BE41.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B80E8
Deuteranopia (green-blind)
#2578E1
Tritanopia (blue-blind)
#53869D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786be4;
/* rgb */ color: rgb(120, 107, 228);
/* oklch */ color: oklch(60.0% 0.177 284.6);
Tailwind
colors: {
  custom: {
    50: '#a695ed',
    500: '#786be4',
    950: '#000000',
  },
}
SCSS
$custom: #786be4;
$custom-light: #a695ed;
$custom-dark: #000000;
JSON
{
  "hex": "#786be4",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 228
  },
  "hsl": {
    "h": 246.446,
    "s": 69.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.60036,
    "c": 0.1771,
    "h": 284.6
  },
  "luminance": 0.2011
}

Semantic roles & 50–950 ramp

primary
#786BE4
secondary
#E5EAC1
accent
#D114BD
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786BE4

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

Preview Lab → · Contrast checker → · Palette generator →

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