#797A87#797A87

#797A87 is a mid, near-neutral grey. Relative luminance 0.197; OKLCH L 58.3% C 0.020 H 282.3°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#797A87
RGBrgb(121, 122, 135)
HSLhsl(236, 6%, 50%)
HSVhsv(236, 10%, 53%)
CMYKcmyk(10.4%, 9.6%, 0%, 47.1%)
CIE-LABlab(51.53, 2.37, -7.18)
CIE-LCHlch(51.53, 7.56, 288.24°)
OKLaboklab(58.3% 0.0042 -0.0193)
OKLCHoklch(58.3% 0.02 282.3)
XYZxyz(19.2170, 19.7331, 25.7134)
Luminance0.1973 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A87 #878679
analogous
#798187 #797A87 #7F7987
triadic
#797A87 #87797A #7A8779
tetradic
#797A87 #877981 #878679 #79877F
square
#797A87 #877981 #878679 #79877F
split-complementary
#797A87 #877F79 #818779
monochromatic
#3F4046 #5C5D67 #797A87 #999AA4 #BABAC1

Accessibility & contrast

On white

4.25
#797A87 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#797A87 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A87
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A87#FFFFFF#000000##000000
##797A871.004.254.954.95
#FFFFFF4.251.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#777B88
Deuteranopia (green-blind)
#767A87
Tritanopia (blue-blind)
#767C7E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #797a87;
/* rgb */ color: rgb(121, 122, 135);
/* oklch */ color: oklch(58.3% 0.020 282.3);
Tailwind
colors: {
  custom: {
    50: '#9fa0aa',
    500: '#797a87',
    950: '#000000',
  },
}
SCSS
$custom: #797a87;
$custom-light: #9fa0aa;
$custom-dark: #000000;
JSON
{
  "hex": "#797a87",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 135
  },
  "hsl": {
    "h": 235.714,
    "s": 5.512,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58305,
    "c": 0.01977,
    "h": 282.3
  },
  "luminance": 0.19733
}

Semantic roles & 50–950 ramp

primary
#797A87
secondary
#B1B1AB
accent
#AB79AF
background
#F9F9FA
surface
#F2F2F4
border
#CCCCCE
text
#0E0E10
muted
#7E7E7F

Preview Lab

Preview with #797A87

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

Preview Lab → · Contrast checker → · Palette generator →

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