#7E8A21

A color in the Yellow, Gold family

#7e8a21 is a color in the Yellow, Gold family: RGB(126, 138, 33), HSL(67°, 61%, 34%), CMYK(9%, 0%, 76%, 46%). Closest named color: olivedrab. Contrast is 3.79:1 on white and 5.54:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#7e8a21
RGBrgb(126 138 33)
RGB (legacy)rgb(126, 138, 33)
RGB %rgb(49% 54% 13%)
HSLhsl(67 61% 34%)
HSV / HSBhsv(67, 76%, 54%)
HWBhwb(67 13% 46%)
CMYKcmyk(9%, 0%, 76%, 46%)
CIELAB (D50)lab(55.02 -14.66 50.49)
LCHlch(55.02 52.58 106.19)
OKLaboklab(0.604 -0.055 0.1126)
OKLCHoklch(0.604 0.1253 116.04)
Decimal8292897

Properties

Color ToneYellow, Gold
Closest named colorolivedrab ΔE 2.7
Closest web-safe color#669933
Hue67°
Saturation (HSL / HSV)61% / 76%
Lightness (HSL)34%
Brightness or Value (HSV)54%
Luminance (Rec.601 / Rec.709)48% / 50%
Relative luminance (WCAG)0.2272
Red / Green / Blue126 / 138 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
3.79:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
5.54: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.3 / -36.4 · As background with white / black text: Lc -70.8 / 38.8

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