#797170

A color in the Black, Gray, White family

#797170 is a color in the Black, Gray, White family: RGB(121, 113, 112), HSL(7°, 4%, 46%), CMYK(0%, 7%, 7%, 53%). Closest named color: dimgray. Contrast is 4.76:1 on white and 4.41:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#797170
RGBrgb(121 113 112)
RGB (legacy)rgb(121, 113, 112)
RGB %rgb(47% 44% 44%)
HSLhsl(7 4% 46%)
HSV / HSBhsv(7, 7%, 47%)
HWBhwb(7 44% 53%)
CMYKcmyk(0%, 7%, 7%, 53%)
CIELAB (D50)lab(48.35 3.06 1.73)
LCHlch(48.35 3.52 29.45)
OKLaboklab(0.5556 0.0091 0.0044)
OKLCHoklch(0.5556 0.0101 26.09)
Decimal7958896

Properties

Color ToneBlack, Gray, White
Closest named colordimgray ΔE 3.6
Closest web-safe color#666666
Hue7°
Saturation (HSL / HSV)4% / 7%
Lightness (HSL)46%
Brightness or Value (HSV)47%
Luminance (Rec.601 / Rec.709)45% / 45%
Relative luminance (WCAG)0.1705
Red / Green / Blue121 / 113 / 112

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.76:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.41:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 73.1 / -28.6 · As background with white / black text: Lc -78.5 / 31

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #797170;
  --color-brand-oklch: oklch(55.56% 0.0101 26.09);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(121 113 112 / 50%); }
/* Tailwind CSS */
<div class="bg-[#797170] text-[#797170] border-[#797170]">