#787BC5#787BC5

#787BC5 is a mid, moderate blue. Relative luminance 0.222; OKLCH L 61.2% C 0.111 H 280.8°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#787BC5
RGBrgb(120, 123, 197)
HSLhsl(238, 40%, 62%)
HSVhsv(238, 39%, 77%)
CMYKcmyk(39.1%, 37.6%, 0%, 22.7%)
CIE-LABlab(54.23, 17.24, -38.95)
CIE-LCHlch(54.23, 42.60, 293.88°)
OKLaboklab(61.2% 0.0209 -0.1094)
OKLCHoklch(61.2% 0.111 280.8)
XYZxyz(24.9038, 22.1892, 55.7833)
Luminance0.2219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BC5 #C5C278
analogous
#78A2C5 #787BC5 #9B78C5
triadic
#787BC5 #C5787B #7BC578
tetradic
#787BC5 #C578A2 #C5C278 #78C59B
square
#787BC5 #C578A2 #C5C278 #78C59B
split-complementary
#787BC5 #C59B78 #A2C578
monochromatic
#3A3E88 #4D51B3 #787BC5 #A3A5D7 #CECFEA

Accessibility & contrast

On white

3.86
#787BC5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#787BC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BC5
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BC5#FFFFFF#000000##000000
##787BC51.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6284C8
Deuteranopia (green-blind)
#5E7FC3
Tritanopia (blue-blind)
#618997
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #787bc5;
/* rgb */ color: rgb(120, 123, 197);
/* oklch */ color: oklch(61.2% 0.111 280.8);
Tailwind
colors: {
  custom: {
    50: '#a2a1d7',
    500: '#787bc5',
    950: '#000000',
  },
}
SCSS
$custom: #787bc5;
$custom-light: #a2a1d7;
$custom-dark: #000000;
JSON
{
  "hex": "#787bc5",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 197
  },
  "hsl": {
    "h": 237.662,
    "s": 39.896,
    "l": 62.157
  },
  "oklch": {
    "l": 0.61196,
    "c": 0.11133,
    "h": 280.8
  },
  "luminance": 0.2219
}

Semantic roles & 50–950 ramp

primary
#787BC5
secondary
#DBD9BE
accent
#AE33B3
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0E14
muted
#7F7E83

Preview Lab

Preview with #787BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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