#786DC5#786DC5

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

Color values

HEX#786DC5
RGBrgb(120, 109, 197)
HSLhsl(248, 43%, 60%)
HSVhsv(248, 45%, 77%)
CMYKcmyk(39.1%, 44.7%, 0%, 22.7%)
CIE-LABlab(50.64, 25.63, -44.62)
CIE-LCHlch(50.64, 51.46, 299.88°)
OKLaboklab(58.47% 0.0393 -0.1259)
OKLCHoklch(58.47% 0.132 287.3)
XYZxyz(23.2896, 18.9608, 55.2452)
Luminance0.1896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DC5 #BAC56D
analogous
#6D8EC5 #786DC5 #A46DC5
triadic
#786DC5 #C5786D #6DC578
tetradic
#786DC5 #C56D8E #BAC56D #6DC5A4
square
#786DC5 #C56D8E #BAC56D #6DC5A4
split-complementary
#786DC5 #C5A46D #8EC56D
monochromatic
#3E3483 #5346AF #786DC5 #A199D6 #C9C5E8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786DC5#FFFFFF#000000##000000
##786DC51.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)
#4D7BC8
Deuteranopia (green-blind)
#4D76C3
Tritanopia (blue-blind)
#637E8F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #786dc5;
/* rgb */ color: rgb(120, 109, 197);
/* oklch */ color: oklch(58.5% 0.132 287.3);
Tailwind
colors: {
  custom: {
    50: '#a297d7',
    500: '#786dc5',
    950: '#000000',
  },
}
SCSS
$custom: #786dc5;
$custom-light: #a297d7;
$custom-dark: #000000;
JSON
{
  "hex": "#786dc5",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 197
  },
  "hsl": {
    "h": 247.5,
    "s": 43.137,
    "l": 60
  },
  "oklch": {
    "l": 0.58465,
    "c": 0.13189,
    "h": 287.3
  },
  "luminance": 0.18962
}

Semantic roles & 50–950 ramp

primary
#786DC5
secondary
#D4D8B6
accent
#D355C3
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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