#786CE8#786CE8

#786CE8 is a mid, vivid blue. Relative luminance 0.205; OKLCH L 60.5% C 0.181 H 284.0°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#786CE8
RGBrgb(120, 108, 232)
HSLhsl(246, 73%, 67%)
HSVhsv(246, 53%, 91%)
CMYKcmyk(48.3%, 53.4%, 0%, 9%)
CIE-LABlab(52.45, 36.35, -61.58)
CIE-LCHlch(52.45, 71.51, 300.56°)
OKLaboklab(60.48% 0.0437 -0.1757)
OKLCHoklch(60.48% 0.181 284)
XYZxyz(27.6694, 20.5430, 78.8355)
Luminance0.2054 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CE8 #DCE86C
analogous
#6C9EE8 #786CE8 #B66CE8
triadic
#786CE8 #E8786C #6CE878
tetradic
#786CE8 #E86C9E #DCE86C #6CE8B6
square
#786CE8 #E86C9E #DCE86C #6CE8B6
split-complementary
#786CE8 #E8B66C #9EE86C
monochromatic
#2D1DBC #4737E0 #786CE8 #A9A1F0 #D9D6F9

Accessibility & contrast

On white

4.11
#786CE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#786CE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CE8
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CE8#FFFFFF#000000##000000
##786CE81.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2881EC
Deuteranopia (green-blind)
#2079E5
Tritanopia (blue-blind)
#5087A0
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786ce8;
/* rgb */ color: rgb(120, 108, 232);
/* oklch */ color: oklch(60.5% 0.181 284.0);
Tailwind
colors: {
  custom: {
    50: '#a696f0',
    500: '#786ce8',
    950: '#000000',
  },
}
SCSS
$custom: #786ce8;
$custom-light: #a696f0;
$custom-dark: #000000;
JSON
{
  "hex": "#786ce8",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 232
  },
  "hsl": {
    "h": 245.806,
    "s": 72.941,
    "l": 66.667
  },
  "oklch": {
    "l": 0.60479,
    "c": 0.18103,
    "h": 284
  },
  "luminance": 0.20544
}

Semantic roles & 50–950 ramp

primary
#786CE8
secondary
#E8ECC4
accent
#D510C2
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786CE8

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

Preview Lab → · Contrast checker → · Palette generator →

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