#797E8A#797E8A

#797E8A is a mid, near-neutral grey. Relative luminance 0.208; OKLCH L 59.3% C 0.019 H 267.7°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#797E8A
RGBrgb(121, 126, 138)
HSLhsl(222, 7%, 51%)
HSVhsv(222, 12%, 54%)
CMYKcmyk(12.3%, 8.7%, 0%, 45.9%)
CIE-LABlab(52.75, 0.71, -7.12)
CIE-LCHlch(52.75, 7.16, 275.68°)
OKLaboklab(59.29% -0.0008 -0.0192)
OKLCHoklch(59.29% 0.019 267.7)
XYZxyz(19.9324, 20.8214, 27.0086)
Luminance0.2082 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E8A #8A8579
analogous
#79868A #797E8A #7C798A
triadic
#797E8A #8A797E #7E8A79
tetradic
#797E8A #8A7986 #8A8579 #798A7C
square
#797E8A #8A7986 #8A8579 #798A7C
split-complementary
#797E8A #8A7C79 #868A79
monochromatic
#404249 #5C606A #797E8A #9A9DA7 #BABDC3

Accessibility & contrast

On white

4.07
#797E8A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#797E8A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E8A
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E8A#FFFFFF#000000##000000
##797E8A1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B7F8B
Deuteranopia (green-blind)
#797D8A
Tritanopia (blue-blind)
#758082
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #797e8a;
/* rgb */ color: rgb(121, 126, 138);
/* oklch */ color: oklch(59.3% 0.019 267.7);
Tailwind
colors: {
  custom: {
    50: '#9fa3ac',
    500: '#797e8a',
    950: '#000000',
  },
}
SCSS
$custom: #797e8a;
$custom-light: #9fa3ac;
$custom-dark: #000000;
JSON
{
  "hex": "#797e8a",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 138
  },
  "hsl": {
    "h": 222.353,
    "s": 6.773,
    "l": 50.784
  },
  "oklch": {
    "l": 0.59292,
    "c": 0.01921,
    "h": 267.7
  },
  "luminance": 0.20822
}

Semantic roles & 50–950 ramp

primary
#797E8A
secondary
#B3B1AC
accent
#9F78B0
background
#F9FAFA
surface
#F2F3F4
border
#CCCDCE
text
#0E0F10
muted
#7E7F7F

Preview Lab

Preview with #797E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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