#787EBF#787EBF

#787EBF is a mid, moderate blue. Relative luminance 0.227; OKLCH L 61.5% C 0.098 H 279.0°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#787EBF
RGBrgb(120, 126, 191)
HSLhsl(235, 36%, 61%)
HSVhsv(235, 37%, 75%)
CMYKcmyk(37.2%, 34%, 0%, 25.1%)
CIE-LABlab(54.74, 13.78, -34.73)
CIE-LCHlch(54.74, 37.36, 291.64°)
OKLaboklab(61.5% 0.0155 -0.0971)
OKLCHoklch(61.5% 0.098 279)
XYZxyz(24.6079, 22.6754, 52.3603)
Luminance0.2268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EBF #BFB978
analogous
#78A1BF #787EBF #9578BF
triadic
#787EBF #BF787E #7EBF78
tetradic
#787EBF #BF78A1 #BFB978 #78BF95
square
#787EBF #BF78A1 #BFB978 #78BF95
split-complementary
#787EBF #BF9578 #A1BF78
monochromatic
#3D4280 #5058A9 #787EBF #A2A6D3 #CBCDE6

Accessibility & contrast

On white

3.79
#787EBF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#787EBF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787EBF
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787EBF#FFFFFF#000000##000000
##787EBF1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6986C2
Deuteranopia (green-blind)
#6580BD
Tritanopia (blue-blind)
#648B96
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #787ebf;
/* rgb */ color: rgb(120, 126, 191);
/* oklch */ color: oklch(61.5% 0.098 279.0);
Tailwind
colors: {
  custom: {
    50: '#a1a3d2',
    500: '#787ebf',
    950: '#000000',
  },
}
SCSS
$custom: #787ebf;
$custom-light: #a1a3d2;
$custom-dark: #000000;
JSON
{
  "hex": "#787ebf",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 191
  },
  "hsl": {
    "h": 234.93,
    "s": 35.678,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61495,
    "c": 0.09834,
    "h": 279
  },
  "luminance": 0.22676
}

Semantic roles & 50–950 ramp

primary
#787EBF
secondary
#D7D5BC
accent
#A437AF
background
#FAFAFC
surface
#F4F3F9
border
#CECDD2
text
#0F0F14
muted
#7F7F82

Preview Lab

Preview with #787EBF

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

Preview Lab → · Contrast checker → · Palette generator →

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