#786DC7#786DC7

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

Color values

HEX#786DC7
RGBrgb(120, 109, 199)
HSLhsl(247, 45%, 60%)
HSVhsv(247, 45%, 78%)
CMYKcmyk(39.7%, 45.2%, 0%, 22%)
CIE-LABlab(50.75, 26.20, -45.59)
CIE-LCHlch(50.75, 52.58, 299.88°)
OKLaboklab(58.58% 0.0396 -0.1288)
OKLCHoklch(58.58% 0.135 287.1)
XYZxyz(23.5203, 19.0531, 56.4601)
Luminance0.1905 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DC7 #BCC76D
analogous
#6D8FC7 #786DC7 #A56DC7
triadic
#786DC7 #C7786D #6DC778
tetradic
#786DC7 #C76D8F #BCC76D #6DC7A5
square
#786DC7 #C76D8F #BCC76D #6DC7A5
split-complementary
#786DC7 #C7A56D #8FC76D
monochromatic
#3E3386 #5244B2 #786DC7 #A199D8 #CAC5E9

Accessibility & contrast

On white

4.37
#786DC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#786DC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DC7
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DC7#FFFFFF#000000##000000
##786DC71.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C7BCA
Deuteranopia (green-blind)
#4B76C5
Tritanopia (blue-blind)
#627F90
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786dc7;
/* rgb */ color: rgb(120, 109, 199);
/* oklch */ color: oklch(58.6% 0.135 287.1);
Tailwind
colors: {
  custom: {
    50: '#a297d8',
    500: '#786dc7',
    950: '#000000',
  },
}
SCSS
$custom: #786dc7;
$custom-light: #a297d8;
$custom-dark: #000000;
JSON
{
  "hex": "#786dc7",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 199
  },
  "hsl": {
    "h": 247.333,
    "s": 44.554,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58581,
    "c": 0.1347,
    "h": 287.1
  },
  "luminance": 0.19054
}

Semantic roles & 50–950 ramp

primary
#786DC7
secondary
#D5D9B7
accent
#B82EA7
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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