#786BC4#786BC4

#786BC4 is a mid, vivid blue. Relative luminance 0.185; OKLCH L 58.0% C 0.133 H 288.2°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#786BC4
RGBrgb(120, 107, 196)
HSLhsl(249, 43%, 59%)
HSVhsv(249, 45%, 77%)
CMYKcmyk(38.8%, 45.4%, 0%, 23.1%)
CIE-LABlab(50.09, 26.55, -44.92)
CIE-LCHlch(50.09, 52.18, 300.59°)
OKLaboklab(58.03% 0.0417 -0.1268)
OKLCHoklch(58.03% 0.133 288.2)
XYZxyz(22.9645, 18.4933, 54.5734)
Luminance0.1849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BC4 #B7C46B
analogous
#6B8BC4 #786BC4 #A56BC4
triadic
#786BC4 #C4786B #6BC478
tetradic
#786BC4 #C46B8B #B7C46B #6BC4A5
square
#786BC4 #C46B8B #B7C46B #6BC4A5
split-complementary
#786BC4 #C4A56B #8BC46B
monochromatic
#3F3381 #5445AD #786BC4 #A097D5 #C8C3E7

Accessibility & contrast

On white

4.47
#786BC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#786BC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BC4
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BC4#FFFFFF#000000##000000
##786BC41.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B79C7
Deuteranopia (green-blind)
#4B75C2
Tritanopia (blue-blind)
#637D8E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #786bc4;
/* rgb */ color: rgb(120, 107, 196);
/* oklch */ color: oklch(58.0% 0.133 288.2);
Tailwind
colors: {
  custom: {
    50: '#a295d6',
    500: '#786bc4',
    950: '#000000',
  },
}
SCSS
$custom: #786bc4;
$custom-light: #a295d6;
$custom-dark: #000000;
JSON
{
  "hex": "#786bc4",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 196
  },
  "hsl": {
    "h": 248.764,
    "s": 42.995,
    "l": 59.412
  },
  "oklch": {
    "l": 0.5803,
    "c": 0.13349,
    "h": 288.2
  },
  "luminance": 0.18494
}

Semantic roles & 50–950 ramp

primary
#786BC4
secondary
#D2D7B4
accent
#D355C0
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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