#787BC4#787BC4

#787BC4 is a mid, moderate blue. Relative luminance 0.221; OKLCH L 61.1% C 0.110 H 280.8°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#787BC4
RGBrgb(120, 123, 196)
HSLhsl(238, 39%, 62%)
HSVhsv(238, 39%, 77%)
CMYKcmyk(38.8%, 37.2%, 0%, 23.1%)
CIE-LABlab(54.18, 16.96, -38.46)
CIE-LCHlch(54.18, 42.03, 293.80°)
OKLaboklab(61.14% 0.0206 -0.1079)
OKLCHoklch(61.14% 0.11 280.8)
XYZxyz(24.7896, 22.1436, 55.1818)
Luminance0.2215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BC4 #C4C178
analogous
#78A1C4 #787BC4 #9B78C4
triadic
#787BC4 #C4787B #7BC478
tetradic
#787BC4 #C478A1 #C4C178 #78C49B
square
#787BC4 #C478A1 #C4C178 #78C49B
split-complementary
#787BC4 #C49B78 #A1C478
monochromatic
#3B3E87 #4D51B1 #787BC4 #A3A5D7 #CDCEE9

Accessibility & contrast

On white

3.87
#787BC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#787BC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BC4
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BC4#FFFFFF#000000##000000
##787BC41.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6384C7
Deuteranopia (green-blind)
#5F7FC2
Tritanopia (blue-blind)
#628996
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787bc4;
/* rgb */ color: rgb(120, 123, 196);
/* oklch */ color: oklch(61.1% 0.110 280.8);
Tailwind
colors: {
  custom: {
    50: '#a2a1d6',
    500: '#787bc4',
    950: '#000000',
  },
}
SCSS
$custom: #787bc4;
$custom-light: #a2a1d6;
$custom-dark: #000000;
JSON
{
  "hex": "#787bc4",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 196
  },
  "hsl": {
    "h": 237.632,
    "s": 39.175,
    "l": 61.961
  },
  "oklch": {
    "l": 0.61143,
    "c": 0.10989,
    "h": 280.8
  },
  "luminance": 0.22145
}

Semantic roles & 50–950 ramp

primary
#787BC4
secondary
#DAD9BE
accent
#AD33B2
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0E14
muted
#7F7E83

Preview Lab

Preview with #787BC4

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

Preview Lab → · Contrast checker → · Palette generator →

#787BC4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva