#797E8D#797E8D

#797E8D is a mid, muted blue. Relative luminance 0.209; OKLCH L 59.4% C 0.024 H 271.0°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#797E8D
RGBrgb(121, 126, 141)
HSLhsl(225, 8%, 51%)
HSVhsv(225, 14%, 55%)
CMYKcmyk(14.2%, 10.6%, 0%, 44.7%)
CIE-LABlab(52.85, 1.38, -8.73)
CIE-LCHlch(52.85, 8.84, 278.99°)
OKLaboklab(59.4% 0.0004 -0.0236)
OKLCHoklch(59.4% 0.024 271)
XYZxyz(20.1526, 20.9095, 28.1683)
Luminance0.2091 (WCAG relative)
Temperatureneutral
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E8D #8D8879
analogous
#79888D #797E8D #7E798D
triadic
#797E8D #8D797E #7E8D79
tetradic
#797E8D #8D7988 #8D8879 #798D7E
square
#797E8D #8D7988 #8D8879 #798D7E
split-complementary
#797E8D #8D7E79 #888D79
monochromatic
#40434B #5C606C #797E8D #9A9EA9 #BBBEC5

Accessibility & contrast

On white

4.05
#797E8D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#797E8D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E8D
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E8D#FFFFFF#000000##000000
##797E8D1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A7F8E
Deuteranopia (green-blind)
#787D8D
Tritanopia (blue-blind)
#758183
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #797e8d;
/* rgb */ color: rgb(121, 126, 141);
/* oklch */ color: oklch(59.4% 0.024 271.0);
Tailwind
colors: {
  custom: {
    50: '#9fa3ae',
    500: '#797e8d',
    950: '#000000',
  },
}
SCSS
$custom: #797e8d;
$custom-light: #9fa3ae;
$custom-dark: #000000;
JSON
{
  "hex": "#797e8d",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 141
  },
  "hsl": {
    "h": 225,
    "s": 8.065,
    "l": 51.373
  },
  "oklch": {
    "l": 0.594,
    "c": 0.02358,
    "h": 271
  },
  "luminance": 0.2091
}

Semantic roles & 50–950 ramp

primary
#797E8D
secondary
#B5B3AC
accent
#A277B1
background
#F9FAFA
surface
#F2F3F4
border
#CCCDCE
text
#0E0F10
muted
#7E7F7F

Preview Lab

Preview with #797E8D

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

Preview Lab → · Contrast checker → · Palette generator →

#797E8D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva