#787EA5#787EA5

#787EA5 is a mid, muted blue. Relative luminance 0.216; OKLCH L 60.3% C 0.060 H 277.6°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#787EA5
RGBrgb(120, 126, 165)
HSLhsl(232, 20%, 56%)
HSVhsv(232, 27%, 65%)
CMYKcmyk(27.3%, 23.6%, 0%, 35.3%)
CIE-LABlab(53.63, 6.84, -21.50)
CIE-LCHlch(53.63, 22.56, 287.64°)
OKLaboklab(60.28% 0.008 -0.0592)
OKLCHoklch(60.28% 0.06 277.6)
XYZxyz(21.9963, 21.6308, 38.6063)
Luminance0.2163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787EA5 #A59F78
analogous
#7894A5 #787EA5 #8878A5
triadic
#787EA5 #A5787E #7EA578
tetradic
#787EA5 #A57894 #A59F78 #78A588
square
#787EA5 #A57894 #A59F78 #78A588
split-complementary
#787EA5 #A58878 #94A578
monochromatic
#414562 #5A5F86 #787EA5 #9DA1BD #C1C4D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787EA5#FFFFFF#000000##000000
##787EA51.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)
#7382A7
Deuteranopia (green-blind)
#707FA4
Tritanopia (blue-blind)
#6D858B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #787ea5;
/* rgb */ color: rgb(120, 126, 165);
/* oklch */ color: oklch(60.3% 0.060 277.6);
Tailwind
colors: {
  custom: {
    50: '#a0a3bf',
    500: '#787ea5',
    950: '#000000',
  },
}
SCSS
$custom: #787ea5;
$custom-light: #a0a3bf;
$custom-dark: #000000;
JSON
{
  "hex": "#787ea5",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 165
  },
  "hsl": {
    "h": 232,
    "s": 20,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60277,
    "c": 0.05974,
    "h": 277.6
  },
  "luminance": 0.21631
}

Semantic roles & 50–950 ramp

primary
#787EA5
secondary
#C6C3B3
accent
#B26BBD
background
#F9FAFB
surface
#F2F3F7
border
#CCCDD0
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #787EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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