#786BCD#786BCD

#786BCD is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.6% C 0.146 H 287.1°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#786BCD
RGBrgb(120, 107, 205)
HSLhsl(248, 49%, 61%)
HSVhsv(248, 48%, 80%)
CMYKcmyk(41.5%, 47.8%, 0%, 19.6%)
CIE-LABlab(50.59, 29.10, -49.28)
CIE-LCHlch(50.59, 57.23, 300.56°)
OKLaboklab(58.57% 0.0429 -0.1396)
OKLCHoklch(58.57% 0.146 287.1)
XYZxyz(24.0198, 18.9154, 60.1312)
Luminance0.1892 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BCD #C0CD6B
analogous
#6B8FCD #786BCD #A96BCD
triadic
#786BCD #CD786B #6BCD78
tetradic
#786BCD #CD6B8F #C0CD6B #6BCDA9
square
#786BCD #CD6B8F #C0CD6B #6BCDA9
split-complementary
#786BCD #CDA96B #8FCD6B
monochromatic
#3C308E #503FBB #786BCD #A299DC #CBC6EC

Accessibility & contrast

On white

4.39
#786BCD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#786BCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BCD
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BCD#FFFFFF#000000##000000
##786BCD1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#447BD1
Deuteranopia (green-blind)
#4376CB
Tritanopia (blue-blind)
#5F7F92
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786bcd;
/* rgb */ color: rgb(120, 107, 205);
/* oklch */ color: oklch(58.6% 0.146 287.1);
Tailwind
colors: {
  custom: {
    50: '#a395dd',
    500: '#786bcd',
    950: '#000000',
  },
}
SCSS
$custom: #786bcd;
$custom-light: #a395dd;
$custom-dark: #000000;
JSON
{
  "hex": "#786bcd",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 205
  },
  "hsl": {
    "h": 247.959,
    "s": 49.495,
    "l": 61.176
  },
  "oklch": {
    "l": 0.58568,
    "c": 0.146,
    "h": 287.1
  },
  "luminance": 0.18916
}

Semantic roles & 50–950 ramp

primary
#786BCD
secondary
#D7DCB8
accent
#BD29A9
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #786BCD

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

Preview Lab → · Contrast checker → · Palette generator →

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