#7F8A7E

A color in the Black, Gray, White family

#7f8a7e is a color in the Black, Gray, White family: RGB(127, 138, 126), HSL(115°, 5%, 52%), CMYK(8%, 0%, 9%, 46%). Closest named color: gray. Contrast is 3.6:1 on white and 5.84:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#7f8a7e
RGBrgb(127 138 126)
RGB (legacy)rgb(127, 138, 126)
RGB %rgb(50% 54% 49%)
HSLhsl(115 5% 52%)
HSV / HSBhsv(115, 9%, 54%)
HWBhwb(115 49% 46%)
CMYKcmyk(8%, 0%, 9%, 46%)
CIELAB (D50)lab(56.29 -5.96 5.01)
LCHlch(56.29 7.78 139.97)
OKLaboklab(0.6208 -0.0175 0.0132)
OKLCHoklch(0.6208 0.0219 142.97)
Decimal8358526

Properties

Color ToneBlack, Gray, White
Closest named colorgray ΔE 3
Closest web-safe color#669966
Hue115°
Saturation (HSL / HSV)5% / 9%
Lightness (HSL)52%
Brightness or Value (HSV)54%
Luminance (Rec.601 / Rec.709)52% / 53%
Relative luminance (WCAG)0.242
Red / Green / Blue127 / 138 / 126

WCAG 2.2 Contrast Ratio

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

APCA Contrast Lc (reference) — As text on white / black: Lc 63.6 / -38.1 · As background with white / black text: Lc -69.1 / 40.5

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: #7f8a7e;
  --color-brand-oklch: oklch(62.08% 0.0219 142.97);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(127 138 126 / 50%); }
/* Tailwind CSS */
<div class="bg-[#7f8a7e] text-[#7f8a7e] border-[#7f8a7e]">