#7E8A7D

A color in the Black, Gray, White family

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

Color Codes

HEX#7e8a7d
RGBrgb(126 138 125)
RGB (legacy)rgb(126, 138, 125)
RGB %rgb(49% 54% 49%)
HSLhsl(115 5% 52%)
HSV / HSBhsv(115, 9%, 54%)
HWBhwb(115 49% 46%)
CMYKcmyk(9%, 0%, 9%, 46%)
CIELAB (D50)lab(56.19 -6.49 5.42)
LCHlch(56.19 8.45 140.12)
OKLaboklab(0.6197 -0.019 0.0143)
OKLCHoklch(0.6197 0.0238 143.14)
Decimal8292989

Properties

Color ToneBlack, Gray, White
Closest named colorgray ΔE 3.1
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.2409
Red / Green / Blue126 / 138 / 125

WCAG 2.2 Contrast Ratio

On White (#ffffff)
3.61:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
5.82: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.7 / -38 · As background with white / black text: Lc -69.2 / 40.4

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