#797172#797172

#797172 is a mid, near-neutral grey. Relative luminance 0.171; OKLCH L 55.6% C 0.010 H 8.8°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#797172
RGBrgb(121, 113, 114)
HSLhsl(353, 3%, 46%)
HSVhsv(353, 7%, 47%)
CMYKcmyk(0%, 6.6%, 5.8%, 52.5%)
CIE-LABlab(48.37, 3.28, 0.56)
CIE-LCHlch(48.37, 3.33, 9.67°)
OKLaboklab(55.62% 0.0099 0.0015)
OKLCHoklch(55.62% 0.01 8.8)
XYZxyz(16.8272, 17.0903, 18.3286)
Luminance0.1709 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797172 #717978
analogous
#797176 #797172 #797471
triadic
#797172 #727971 #717279
tetradic
#797172 #767971 #717978 #747179
square
#797172 #767971 #717978 #747179
split-complementary
#797172 #717974 #717679
monochromatic
#3A3636 #595354 #797172 #979091 #B5B0B0

Accessibility & contrast

On white

4.75
#797172 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#797172 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797172
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797172#FFFFFF#000000##FFFFFF
##7971721.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#727272
Deuteranopia (green-blind)
#747372
Tritanopia (blue-blind)
#7B7071
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #797172;
/* rgb */ color: rgb(121, 113, 114);
/* oklch */ color: oklch(55.6% 0.010 8.8);
Tailwind
colors: {
  custom: {
    50: '#9f999a',
    500: '#797172',
    950: '#000000',
  },
}
SCSS
$custom: #797172;
$custom-light: #9f999a;
$custom-dark: #000000;
JSON
{
  "hex": "#797172",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 114
  },
  "hsl": {
    "h": 352.5,
    "s": 3.419,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55619,
    "c": 0.01004,
    "h": 8.8
  },
  "luminance": 0.1709
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797172

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

Preview Lab → · Contrast checker → · Palette generator →

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