#797271#797271

#797271 is a mid, near-neutral grey. Relative luminance 0.173; OKLCH L 55.8% C 0.009 H 27.3°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#797271
RGBrgb(121, 114, 113)
HSLhsl(8, 3%, 46%)
HSVhsv(8, 7%, 47%)
CMYKcmyk(0%, 5.8%, 6.6%, 52.5%)
CIE-LABlab(48.63, 2.50, 1.52)
CIE-LCHlch(48.63, 2.93, 31.26°)
OKLaboklab(55.81% 0.0079 0.0041)
OKLCHoklch(55.81% 0.009 27.3)
XYZxyz(16.8828, 17.2920, 18.0679)
Luminance0.1729 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797271 #717879
analogous
#797174 #797271 #797671
triadic
#797271 #717972 #727179
tetradic
#797271 #747971 #717879 #767179
square
#797271 #747971 #717879 #767179
split-complementary
#797271 #717976 #717479
monochromatic
#3A3636 #595453 #797271 #979190 #B5B0B0

Accessibility & contrast

On white

4.71
#797271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#797271 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797271
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797271#FFFFFF#000000##FFFFFF
##7972711.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#737371
Deuteranopia (green-blind)
#757471
Tritanopia (blue-blind)
#7B7172
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #797271;
/* rgb */ color: rgb(121, 114, 113);
/* oklch */ color: oklch(55.8% 0.009 27.3);
Tailwind
colors: {
  custom: {
    50: '#9f9a99',
    500: '#797271',
    950: '#000000',
  },
}
SCSS
$custom: #797271;
$custom-light: #9f9a99;
$custom-dark: #000000;
JSON
{
  "hex": "#797271",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 113
  },
  "hsl": {
    "h": 7.5,
    "s": 3.419,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55807,
    "c": 0.00884,
    "h": 27.3
  },
  "luminance": 0.17292
}

Semantic roles & 50–950 ramp

primary
#797271
secondary
#A1A5A5
accent
#A6AD7B
background
#F9F9F9
surface
#F2F2F2
border
#CCCCCC
text
#0E0E0E
muted
#7E7E7E

Preview Lab

Preview with #797271

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

Preview Lab → · Contrast checker → · Palette generator →

#797271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva