#787E98#787E98

#787E98 is a mid, muted blue. Relative luminance 0.212; OKLCH L 59.7% C 0.040 H 274.9°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#787E98
RGBrgb(120, 126, 152)
HSLhsl(229, 13%, 53%)
HSVhsv(229, 21%, 60%)
CMYKcmyk(21.1%, 17.1%, 0%, 40.4%)
CIE-LABlab(53.15, 3.61, -14.70)
CIE-LCHlch(53.15, 15.14, 283.80°)
OKLaboklab(59.74% 0.0035 -0.0401)
OKLCHoklch(59.74% 0.04 274.9)
XYZxyz(20.8727, 21.1814, 32.6884)
Luminance0.2118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E98 #989278
analogous
#788E98 #787E98 #827898
triadic
#787E98 #98787E #7E9878
tetradic
#787E98 #98788E #989278 #789882
square
#787E98 #98788E #989278 #789882
split-complementary
#787E98 #988278 #8E9878
monochromatic
#414555 #5B6178 #787E98 #9B9FB2 #BDC0CD

Accessibility & contrast

On white

4.01
#787E98 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#787E98 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E98
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E98#FFFFFF#000000##000000
##787E981.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#778099
Deuteranopia (green-blind)
#757E97
Tritanopia (blue-blind)
#718387
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #787e98;
/* rgb */ color: rgb(120, 126, 152);
/* oklch */ color: oklch(59.7% 0.040 274.9);
Tailwind
colors: {
  custom: {
    50: '#9fa3b6',
    500: '#787e98',
    950: '#000000',
  },
}
SCSS
$custom: #787e98;
$custom-light: #9fa3b6;
$custom-dark: #000000;
JSON
{
  "hex": "#787e98",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 152
  },
  "hsl": {
    "h": 228.75,
    "s": 13.445,
    "l": 53.333
  },
  "oklch": {
    "l": 0.59738,
    "c": 0.04024,
    "h": 274.9
  },
  "luminance": 0.21182
}

Semantic roles & 50–950 ramp

primary
#787E98
secondary
#BDBAAF
accent
#A972B6
background
#F9FAFB
surface
#F2F3F6
border
#CCCDD0
text
#0E0F11
muted
#7E7F80

Preview Lab

Preview with #787E98

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

Preview Lab → · Contrast checker → · Palette generator →

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