#786BE8#786BE8

#786BE8 is a mid, vivid blue. Relative luminance 0.203; OKLCH L 60.3% C 0.182 H 284.2°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#786BE8
RGBrgb(120, 107, 232)
HSLhsl(246, 73%, 66%)
HSVhsv(246, 54%, 91%)
CMYKcmyk(48.3%, 53.9%, 0%, 9%)
CIE-LABlab(52.21, 36.94, -61.96)
CIE-LCHlch(52.21, 72.13, 300.81°)
OKLaboklab(60.31% 0.0448 -0.1768)
OKLCHoklch(60.31% 0.182 284.2)
XYZxyz(27.5646, 20.3333, 78.8006)
Luminance0.2034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BE8 #DBE86B
analogous
#6B9DE8 #786BE8 #B76BE8
triadic
#786BE8 #E8786B #6BE878
tetradic
#786BE8 #E86B9D #DBE86B #6BE8B7
square
#786BE8 #E86B9D #DBE86B #6BE8B7
split-complementary
#786BE8 #E8B76B #9DE86B
monochromatic
#2E1DBB #4836E0 #786BE8 #A8A0F0 #D9D5F8

Accessibility & contrast

On white

4.14
#786BE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#786BE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BE8
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BE8#FFFFFF#000000##000000
##786BE81.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2480EC
Deuteranopia (green-blind)
#1C79E5
Tritanopia (blue-blind)
#50879F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786be8;
/* rgb */ color: rgb(120, 107, 232);
/* oklch */ color: oklch(60.3% 0.182 284.2);
Tailwind
colors: {
  custom: {
    50: '#a695f0',
    500: '#786be8',
    950: '#000000',
  },
}
SCSS
$custom: #786be8;
$custom-light: #a695f0;
$custom-dark: #000000;
JSON
{
  "hex": "#786be8",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 232
  },
  "hsl": {
    "h": 246.24,
    "s": 73.099,
    "l": 66.471
  },
  "oklch": {
    "l": 0.60305,
    "c": 0.18239,
    "h": 284.2
  },
  "luminance": 0.20335
}

Semantic roles & 50–950 ramp

primary
#786BE8
secondary
#E7ECC3
accent
#D510C1
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786BE8

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

Preview Lab → · Contrast checker → · Palette generator →

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