#797B87#797B87

#797B87 is a mid, near-neutral grey. Relative luminance 0.200; OKLCH L 58.5% C 0.018 H 278.3°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#797B87
RGBrgb(121, 123, 135)
HSLhsl(231, 6%, 50%)
HSVhsv(231, 10%, 53%)
CMYKcmyk(10.4%, 8.9%, 0%, 47.1%)
CIE-LABlab(51.81, 1.78, -6.77)
CIE-LCHlch(51.81, 7.00, 284.78°)
OKLaboklab(58.53% 0.0027 -0.0182)
OKLCHoklch(58.53% 0.018 278.3)
XYZxyz(19.3404, 19.9800, 25.7546)
Luminance0.1998 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B87 #878579
analogous
#798287 #797B87 #7E7987
triadic
#797B87 #87797B #7B8779
tetradic
#797B87 #877982 #878579 #79877E
square
#797B87 #877982 #878579 #79877E
split-complementary
#797B87 #877E79 #828779
monochromatic
#3F4046 #5C5E67 #797B87 #999BA4 #BABBC1

Accessibility & contrast

On white

4.20
#797B87 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#797B87 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B87
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B87#FFFFFF#000000##000000
##797B871.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#787C88
Deuteranopia (green-blind)
#777B87
Tritanopia (blue-blind)
#767D7F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #797b87;
/* rgb */ color: rgb(121, 123, 135);
/* oklch */ color: oklch(58.5% 0.018 278.3);
Tailwind
colors: {
  custom: {
    50: '#9fa1aa',
    500: '#797b87',
    950: '#000000',
  },
}
SCSS
$custom: #797b87;
$custom-light: #9fa1aa;
$custom-dark: #000000;
JSON
{
  "hex": "#797b87",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 135
  },
  "hsl": {
    "h": 231.429,
    "s": 5.512,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58525,
    "c": 0.01838,
    "h": 278.3
  },
  "luminance": 0.1998
}

Semantic roles & 50–950 ramp

primary
#797B87
secondary
#B1B0AB
accent
#A779AF
background
#F9F9FA
surface
#F2F2F4
border
#CCCCCE
text
#0E0E10
muted
#7E7E7F

Preview Lab

Preview with #797B87

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

Preview Lab → · Contrast checker → · Palette generator →

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