#797C87#797C87

#797C87 is a mid, near-neutral grey. Relative luminance 0.202; OKLCH L 58.7% C 0.017 H 273.7°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#797C87
RGBrgb(121, 124, 135)
HSLhsl(227, 6%, 50%)
HSVhsv(227, 10%, 53%)
CMYKcmyk(10.4%, 8.1%, 0%, 47.1%)
CIE-LABlab(52.10, 1.20, -6.35)
CIE-LCHlch(52.10, 6.46, 280.75°)
OKLaboklab(58.75% 0.0011 -0.0171)
OKLCHoklch(58.75% 0.017 273.7)
XYZxyz(19.4651, 20.2293, 25.7961)
Luminance0.2023 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C87 #878479
analogous
#798387 #797C87 #7D7987
triadic
#797C87 #87797C #7C8779
tetradic
#797C87 #877983 #878479 #79877D
square
#797C87 #877983 #878479 #79877D
split-complementary
#797C87 #877D79 #838779
monochromatic
#3F4146 #5C5E67 #797C87 #999CA4 #BABBC1

Accessibility & contrast

On white

4.16
#797C87 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#797C87 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C87
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C87#FFFFFF#000000##000000
##797C871.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#797D88
Deuteranopia (green-blind)
#787C87
Tritanopia (blue-blind)
#767E7F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #797c87;
/* rgb */ color: rgb(121, 124, 135);
/* oklch */ color: oklch(58.7% 0.017 273.7);
Tailwind
colors: {
  custom: {
    50: '#9fa1aa',
    500: '#797c87',
    950: '#000000',
  },
}
SCSS
$custom: #797c87;
$custom-light: #9fa1aa;
$custom-dark: #000000;
JSON
{
  "hex": "#797c87",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 135
  },
  "hsl": {
    "h": 227.143,
    "s": 5.512,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58745,
    "c": 0.0171,
    "h": 273.7
  },
  "luminance": 0.2023
}

Semantic roles & 50–950 ramp

primary
#797C87
secondary
#B1B0AB
accent
#A379AF
background
#F9F9FA
surface
#F2F2F4
border
#CCCCCE
text
#0E0F10
muted
#7E7E7F

Preview Lab

Preview with #797C87

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

Preview Lab → · Contrast checker → · Palette generator →

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