#7C8A4E

A color in the Yellow, Gold family

#7c8a4e is a color in the Yellow, Gold family: RGB(124, 138, 78), HSL(74°, 28%, 42%), CMYK(10%, 0%, 43%, 46%). Closest named color: olive. Contrast is 3.75:1 on white and 5.6:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#7c8a4e
RGBrgb(124 138 78)
RGB (legacy)rgb(124, 138, 78)
RGB %rgb(49% 54% 31%)
HSLhsl(74 28% 42%)
HSV / HSBhsv(74, 43%, 54%)
HWBhwb(74 31% 46%)
CMYKcmyk(10%, 0%, 43%, 46%)
CIELAB (D50)lab(55.24 -12.76 30.24)
LCHlch(55.24 32.82 112.88)
OKLaboklab(0.6075 -0.0421 0.0738)
OKLCHoklch(0.6075 0.0849 119.74)
Decimal8161870

Properties

Color ToneYellow, Gold
Closest named colorolive ΔE 5.3
Closest web-safe color#669966
Hue74°
Saturation (HSL / HSV)28% / 43%
Lightness (HSL)42%
Brightness or Value (HSV)54%
Luminance (Rec.601 / Rec.709)50% / 51%
Relative luminance (WCAG)0.2301
Red / Green / Blue124 / 138 / 78

WCAG 2.2 Contrast Ratio

On White (#ffffff)
3.75:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
5.60: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 65 / -36.7 · As background with white / black text: Lc -70.5 / 39.1

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: #7c8a4e;
  --color-brand-oklch: oklch(60.75% 0.0849 119.74);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(124 138 78 / 50%); }
/* Tailwind CSS */
<div class="bg-[#7c8a4e] text-[#7c8a4e] border-[#7c8a4e]">