#797F8D#797F8D

#797F8D is a mid, muted blue. Relative luminance 0.212; OKLCH L 59.6% C 0.022 H 267.2°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#797F8D
RGBrgb(121, 127, 141)
HSLhsl(222, 8%, 51%)
HSVhsv(222, 14%, 55%)
CMYKcmyk(14.2%, 9.9%, 0%, 44.7%)
CIE-LABlab(53.13, 0.80, -8.31)
CIE-LCHlch(53.13, 8.35, 275.52°)
OKLaboklab(59.62% -0.0011 -0.0224)
OKLCHoklch(59.62% 0.022 267.2)
XYZxyz(20.2812, 21.1665, 28.2112)
Luminance0.2117 (WCAG relative)
Temperatureneutral
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F8D #8D8779
analogous
#79898D #797F8D #7D798D
triadic
#797F8D #8D797F #7F8D79
tetradic
#797F8D #8D7989 #8D8779 #798D7D
square
#797F8D #8D7989 #8D8779 #798D7D
split-complementary
#797F8D #8D7D79 #898D79
monochromatic
#40444B #5C616C #797F8D #9A9FA9 #BBBEC5

Accessibility & contrast

On white

4.01
#797F8D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#797F8D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F8D
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F8D#FFFFFF#000000##000000
##797F8D1.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B808E
Deuteranopia (green-blind)
#797E8D
Tritanopia (blue-blind)
#748283
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #797f8d;
/* rgb */ color: rgb(121, 127, 141);
/* oklch */ color: oklch(59.6% 0.022 267.2);
Tailwind
colors: {
  custom: {
    50: '#9fa4ae',
    500: '#797f8d',
    950: '#000000',
  },
}
SCSS
$custom: #797f8d;
$custom-light: #9fa4ae;
$custom-dark: #000000;
JSON
{
  "hex": "#797f8d",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 141
  },
  "hsl": {
    "h": 222,
    "s": 8.065,
    "l": 51.373
  },
  "oklch": {
    "l": 0.59621,
    "c": 0.02247,
    "h": 267.2
  },
  "luminance": 0.21167
}

Semantic roles & 50–950 ramp

primary
#797F8D
secondary
#B5B3AC
accent
#A077B1
background
#F9FAFA
surface
#F2F4F4
border
#CCCECE
text
#0E0F10
muted
#7E7F7F

Preview Lab

Preview with #797F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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