#786BDB#786BDB

#786BDB is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.4% C 0.165 H 285.5°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#786BDB
RGBrgb(120, 107, 219)
HSLhsl(247, 61%, 64%)
HSVhsv(247, 51%, 86%)
CMYKcmyk(45.2%, 51.1%, 0%, 14.1%)
CIE-LABlab(51.41, 33.13, -55.93)
CIE-LCHlch(51.41, 65.01, 300.64°)
OKLaboklab(59.45% 0.0441 -0.1591)
OKLCHoklch(59.45% 0.165 285.5)
XYZxyz(25.7859, 19.6218, 69.4328)
Luminance0.1962 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BDB #CEDB6B
analogous
#6B96DB #786BDB #B06BDB
triadic
#786BDB #DB786B #6BDB78
tetradic
#786BDB #DB6B96 #CEDB6B #6BDBB0
square
#786BDB #DB6B96 #CEDB6B #6BDBB0
split-complementary
#786BDB #DBB06B #96DB6B
monochromatic
#3628A4 #4B3ACF #786BDB #A59CE7 #D2CDF3

Accessibility & contrast

On white

4.26
#786BDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#786BDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BDB
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BDB#FFFFFF#000000##000000
##786BDB1.004.264.924.92
#FFFFFF4.261.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#377EDF
Deuteranopia (green-blind)
#3477D9
Tritanopia (blue-blind)
#588399
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #786bdb;
/* rgb */ color: rgb(120, 107, 219);
/* oklch */ color: oklch(59.4% 0.165 285.5);
Tailwind
colors: {
  custom: {
    50: '#a595e7',
    500: '#786bdb',
    950: '#000000',
  },
}
SCSS
$custom: #786bdb;
$custom-light: #a595e7;
$custom-dark: #000000;
JSON
{
  "hex": "#786bdb",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 219
  },
  "hsl": {
    "h": 246.964,
    "s": 60.87,
    "l": 63.922
  },
  "oklch": {
    "l": 0.59446,
    "c": 0.16508,
    "h": 285.5
  },
  "luminance": 0.19623
}

Semantic roles & 50–950 ramp

primary
#786BDB
secondary
#E0E5BD
accent
#C91DB5
background
#FAF9FE
surface
#F4F1FC
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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