#787BB9#787BB9

#787BB9 is a mid, moderate blue. Relative luminance 0.217; OKLCH L 60.6% C 0.094 H 281.1°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#787BB9
RGBrgb(120, 123, 185)
HSLhsl(237, 32%, 60%)
HSVhsv(237, 35%, 73%)
CMYKcmyk(35.1%, 33.5%, 0%, 27.5%)
CIE-LABlab(53.67, 13.91, -32.97)
CIE-LCHlch(53.67, 35.79, 292.87°)
OKLaboklab(60.58% 0.018 -0.092)
OKLCHoklch(60.58% 0.094 281.1)
XYZxyz(23.5832, 21.6610, 48.8280)
Luminance0.2166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BB9 #B9B678
analogous
#789BB9 #787BB9 #9678B9
triadic
#787BB9 #B9787B #7BB978
tetradic
#787BB9 #B9789B #B9B678 #78B996
square
#787BB9 #B9789B #B9B678 #78B996
split-complementary
#787BB9 #B99678 #9BB978
monochromatic
#3E4178 #5357A1 #787BB9 #A0A2CE #C9CAE3

Accessibility & contrast

On white

3.94
#787BB9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#787BB9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BB9
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BB9#FFFFFF#000000##000000
##787BB91.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6883BC
Deuteranopia (green-blind)
#657EB7
Tritanopia (blue-blind)
#668791
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #787bb9;
/* rgb */ color: rgb(120, 123, 185);
/* oklch */ color: oklch(60.6% 0.094 281.1);
Tailwind
colors: {
  custom: {
    50: '#a1a1ce',
    500: '#787bb9',
    950: '#000000',
  },
}
SCSS
$custom: #787bb9;
$custom-light: #a1a1ce;
$custom-dark: #000000;
JSON
{
  "hex": "#787bb9",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 185
  },
  "hsl": {
    "h": 237.231,
    "s": 31.707,
    "l": 59.804
  },
  "oklch": {
    "l": 0.6058,
    "c": 0.09379,
    "h": 281.1
  },
  "luminance": 0.21662
}

Semantic roles & 50–950 ramp

primary
#787BB9
secondary
#D3D2BA
accent
#C360C8
background
#FAF9FC
surface
#F3F2F9
border
#CDCCD2
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #787BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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