#797F87#797F87

#797F87 is a mid, near-neutral grey. Relative luminance 0.210; OKLCH L 59.4% C 0.014 H 255.5°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#797F87
RGBrgb(121, 127, 135)
HSLhsl(214, 6%, 50%)
HSVhsv(214, 10%, 53%)
CMYKcmyk(10.4%, 5.9%, 0%, 47.1%)
CIE-LABlab(52.94, -0.53, -5.09)
CIE-LCHlch(52.94, 5.12, 264.08°)
OKLaboklab(59.41% -0.0035 -0.0137)
OKLCHoklch(59.41% 0.014 255.5)
XYZxyz(19.8468, 20.9927, 25.9234)
Luminance0.2099 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F87 #878179
analogous
#798687 #797F87 #7A7987
triadic
#797F87 #87797F #7F8779
tetradic
#797F87 #877986 #878179 #79877A
square
#797F87 #877986 #878179 #79877A
split-complementary
#797F87 #877A79 #868779
monochromatic
#3F4246 #5C6167 #797F87 #999EA4 #BABDC1

Accessibility & contrast

On white

4.04
#797F87 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#797F87 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F87
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F87#FFFFFF#000000##000000
##797F871.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C7F87
Deuteranopia (green-blind)
#7B7E87
Tritanopia (blue-blind)
#768181
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #797f87;
/* rgb */ color: rgb(121, 127, 135);
/* oklch */ color: oklch(59.4% 0.014 255.5);
Tailwind
colors: {
  custom: {
    50: '#9fa4aa',
    500: '#797f87',
    950: '#000000',
  },
}
SCSS
$custom: #797f87;
$custom-light: #9fa4aa;
$custom-dark: #000000;
JSON
{
  "hex": "#797f87",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 135
  },
  "hsl": {
    "h": 214.286,
    "s": 5.512,
    "l": 50.196
  },
  "oklch": {
    "l": 0.59409,
    "c": 0.01413,
    "h": 255.5
  },
  "luminance": 0.20993
}

Semantic roles & 50–950 ramp

primary
#797F87
secondary
#B1AEAB
accent
#9879AF
background
#F9FAFA
surface
#F2F4F4
border
#CCCECE
text
#0E0F10
muted
#7E7F7F

Preview Lab

Preview with #797F87

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

Preview Lab → · Contrast checker → · Palette generator →

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