#787BBC#787BBC

#787BBC is a mid, moderate blue. Relative luminance 0.218; OKLCH L 60.7% C 0.098 H 281.0°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#787BBC
RGBrgb(120, 123, 188)
HSLhsl(237, 34%, 60%)
HSVhsv(237, 36%, 74%)
CMYKcmyk(36.2%, 34.6%, 0%, 26.3%)
CIE-LABlab(53.80, 14.73, -34.48)
CIE-LCHlch(53.80, 37.49, 293.14°)
OKLaboklab(60.73% 0.0188 -0.0964)
OKLCHoklch(60.73% 0.098 281)
XYZxyz(23.9032, 21.7890, 50.5135)
Luminance0.2179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BBC #BCB978
analogous
#789DBC #787BBC #9778BC
triadic
#787BBC #BC787B #7BBC78
tetradic
#787BBC #BC789D #BCB978 #78BC97
square
#787BBC #BC789D #BCB978 #78BC97
split-complementary
#787BBC #BC9778 #9DBC78
monochromatic
#3E407C #5256A5 #787BBC #A1A3D0 #CACBE5

Accessibility & contrast

On white

3.92
#787BBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#787BBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BBC
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BBC#FFFFFF#000000##000000
##787BBC1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6683BF
Deuteranopia (green-blind)
#637EBA
Tritanopia (blue-blind)
#658793
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #787bbc;
/* rgb */ color: rgb(120, 123, 188);
/* oklch */ color: oklch(60.7% 0.098 281.0);
Tailwind
colors: {
  custom: {
    50: '#a1a1d0',
    500: '#787bbc',
    950: '#000000',
  },
}
SCSS
$custom: #787bbc;
$custom-light: #a1a1d0;
$custom-dark: #000000;
JSON
{
  "hex": "#787bbc",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 188
  },
  "hsl": {
    "h": 237.353,
    "s": 33.663,
    "l": 60.392
  },
  "oklch": {
    "l": 0.6073,
    "c": 0.0982,
    "h": 281
  },
  "luminance": 0.2179
}

Semantic roles & 50–950 ramp

primary
#787BBC
secondary
#D5D4BB
accent
#A739AC
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #787BBC

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

Preview Lab → · Contrast checker → · Palette generator →

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