#786BCE#786BCE

#786BCE is a mid, vivid blue. Relative luminance 0.190; OKLCH L 58.6% C 0.147 H 287.0°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#786BCE
RGBrgb(120, 107, 206)
HSLhsl(248, 50%, 61%)
HSVhsv(248, 48%, 81%)
CMYKcmyk(41.7%, 48.1%, 0%, 19.2%)
CIE-LABlab(50.64, 29.38, -49.76)
CIE-LCHlch(50.64, 57.79, 300.56°)
OKLaboklab(58.63% 0.043 -0.141)
OKLCHoklch(58.63% 0.147 287)
XYZxyz(24.1409, 18.9638, 60.7690)
Luminance0.1897 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BCE #C1CE6B
analogous
#6B90CE #786BCE #AA6BCE
triadic
#786BCE #CE786B #6BCE78
tetradic
#786BCE #CE6B90 #C1CE6B #6BCEAA
square
#786BCE #CE6B90 #C1CE6B #6BCEAA
split-complementary
#786BCE #CEAA6B #90CE6B
monochromatic
#3C2F8F #4F3FBD #786BCE #A299DD #CCC7EC

Accessibility & contrast

On white

4.38
#786BCE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#786BCE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BCE
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BCE#FFFFFF#000000##000000
##786BCE1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#437BD2
Deuteranopia (green-blind)
#4276CC
Tritanopia (blue-blind)
#5F7F93
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786bce;
/* rgb */ color: rgb(120, 107, 206);
/* oklch */ color: oklch(58.6% 0.147 287.0);
Tailwind
colors: {
  custom: {
    50: '#a395dd',
    500: '#786bce',
    950: '#000000',
  },
}
SCSS
$custom: #786bce;
$custom-light: #a395dd;
$custom-dark: #000000;
JSON
{
  "hex": "#786bce",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 206
  },
  "hsl": {
    "h": 247.879,
    "s": 50.254,
    "l": 61.373
  },
  "oklch": {
    "l": 0.58629,
    "c": 0.14737,
    "h": 287
  },
  "luminance": 0.18965
}

Semantic roles & 50–950 ramp

primary
#786BCE
secondary
#D8DDB8
accent
#BE28AA
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786BCE

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

Preview Lab → · Contrast checker → · Palette generator →

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