#786BE0#786BE0

#786BE0 is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.8% C 0.172 H 285.0°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#786BE0
RGBrgb(120, 107, 224)
HSLhsl(247, 65%, 65%)
HSVhsv(247, 52%, 88%)
CMYKcmyk(46.4%, 52.2%, 0%, 12.2%)
CIE-LABlab(51.71, 34.59, -58.26)
CIE-LCHlch(51.71, 67.76, 300.70°)
OKLaboklab(59.77% 0.0444 -0.1659)
OKLCHoklch(59.77% 0.172 285)
XYZxyz(26.4540, 19.8891, 72.9516)
Luminance0.1989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BE0 #D3E06B
analogous
#6B98E0 #786BE0 #B36BE0
triadic
#786BE0 #E0786B #6BE078
tetradic
#786BE0 #E06B98 #D3E06B #6BE0B3
square
#786BE0 #E06B98 #D3E06B #6BE0B3
split-complementary
#786BE0 #E0B36B #98E06B
monochromatic
#3324AC #4A38D5 #786BE0 #A69EEB #D4D0F5

Accessibility & contrast

On white

4.22
#786BE0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#786BE0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BE0
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BE0#FFFFFF#000000##000000
##786BE01.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#317FE4
Deuteranopia (green-blind)
#2C78DD
Tritanopia (blue-blind)
#55849B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786be0;
/* rgb */ color: rgb(120, 107, 224);
/* oklch */ color: oklch(59.8% 0.172 285.0);
Tailwind
colors: {
  custom: {
    50: '#a595ea',
    500: '#786be0',
    950: '#000000',
  },
}
SCSS
$custom: #786be0;
$custom-light: #a595ea;
$custom-dark: #000000;
JSON
{
  "hex": "#786be0",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 224
  },
  "hsl": {
    "h": 246.667,
    "s": 65.363,
    "l": 64.902
  },
  "oklch": {
    "l": 0.59772,
    "c": 0.17178,
    "h": 285
  },
  "luminance": 0.1989
}

Semantic roles & 50–950 ramp

primary
#786BE0
secondary
#E3E7BF
accent
#CD18B9
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786BE0

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

Preview Lab → · Contrast checker → · Palette generator →

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