#786CC5#786CC5

#786CC5 is a mid, vivid blue. Relative luminance 0.187; OKLCH L 58.3% C 0.133 H 287.7°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#786CC5
RGBrgb(120, 108, 197)
HSLhsl(248, 43%, 60%)
HSVhsv(248, 45%, 77%)
CMYKcmyk(39.1%, 45.2%, 0%, 22.7%)
CIE-LABlab(50.39, 26.23, -45.01)
CIE-LCHlch(50.39, 52.10, 300.23°)
OKLaboklab(58.28% 0.0406 -0.1271)
OKLCHoklch(58.28% 0.133 287.7)
XYZxyz(23.1835, 18.7487, 55.2098)
Luminance0.1875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CC5 #B9C56C
analogous
#6C8CC5 #786CC5 #A56CC5
triadic
#786CC5 #C5786C #6CC578
tetradic
#786CC5 #C56C8C #B9C56C #6CC5A5
square
#786CC5 #C56C8C #B9C56C #6CC5A5
split-complementary
#786CC5 #C5A56C #8CC56C
monochromatic
#3E3483 #5345AF #786CC5 #A098D6 #C9C4E8

Accessibility & contrast

On white

4.42
#786CC5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#786CC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CC5
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CC5#FFFFFF#000000##000000
##786CC51.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C7AC8
Deuteranopia (green-blind)
#4B76C3
Tritanopia (blue-blind)
#637E8F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #786cc5;
/* rgb */ color: rgb(120, 108, 197);
/* oklch */ color: oklch(58.3% 0.133 287.7);
Tailwind
colors: {
  custom: {
    50: '#a296d7',
    500: '#786cc5',
    950: '#000000',
  },
}
SCSS
$custom: #786cc5;
$custom-light: #a296d7;
$custom-dark: #000000;
JSON
{
  "hex": "#786cc5",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 197
  },
  "hsl": {
    "h": 248.09,
    "s": 43.415,
    "l": 59.804
  },
  "oklch": {
    "l": 0.58276,
    "c": 0.13339,
    "h": 287.7
  },
  "luminance": 0.18749
}

Semantic roles & 50–950 ramp

primary
#786CC5
secondary
#D3D8B5
accent
#D355C2
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #786CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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