#787BC3#787BC3

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

Color values

HEX#787BC3
RGBrgb(120, 123, 195)
HSLhsl(238, 38%, 62%)
HSVhsv(238, 38%, 76%)
CMYKcmyk(38.5%, 36.9%, 0%, 23.5%)
CIE-LABlab(54.13, 16.68, -37.96)
CIE-LCHlch(54.13, 41.47, 293.72°)
OKLaboklab(61.09% 0.0204 -0.1065)
OKLCHoklch(61.09% 0.108 280.9)
XYZxyz(24.6762, 22.0982, 54.5844)
Luminance0.2210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BC3 #C3C078
analogous
#78A1C3 #787BC3 #9B78C3
triadic
#787BC3 #C3787B #7BC378
tetradic
#787BC3 #C378A1 #C3C078 #78C39B
square
#787BC3 #C378A1 #C3C078 #78C39B
split-complementary
#787BC3 #C39B78 #A1C378
monochromatic
#3B3E85 #4E52B0 #787BC3 #A2A4D6 #CDCEE9

Accessibility & contrast

On white

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

On black

5.42
#787BC3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BC3
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BC3#FFFFFF#000000##000000
##787BC31.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6384C6
Deuteranopia (green-blind)
#5F7FC1
Tritanopia (blue-blind)
#628996
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787bc3;
/* rgb */ color: rgb(120, 123, 195);
/* oklch */ color: oklch(61.1% 0.108 280.9);
Tailwind
colors: {
  custom: {
    50: '#a2a1d5',
    500: '#787bc3',
    950: '#000000',
  },
}
SCSS
$custom: #787bc3;
$custom-light: #a2a1d5;
$custom-dark: #000000;
JSON
{
  "hex": "#787bc3",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 195
  },
  "hsl": {
    "h": 237.6,
    "s": 38.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.61091,
    "c": 0.10843,
    "h": 280.9
  },
  "luminance": 0.22099
}

Semantic roles & 50–950 ramp

primary
#787BC3
secondary
#D9D8BE
accent
#AC34B1
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0E14
muted
#7F7E83

Preview Lab

Preview with #787BC3

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

Preview Lab → · Contrast checker → · Palette generator →

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