#7C7D21

A color in the Yellow, Gold family

#7c7d21 is a color in the Yellow, Gold family: RGB(124, 125, 33), HSL(61°, 58%, 31%), CMYK(1%, 0%, 74%, 51%). Closest named color: olive. Contrast is 4.36:1 on white and 4.81:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#7c7d21
RGBrgb(124 125 33)
RGB (legacy)rgb(124, 125, 33)
RGB %rgb(49% 49% 13%)
HSLhsl(61 58% 31%)
HSV / HSBhsv(61, 74%, 49%)
HWBhwb(61 13% 51%)
CMYKcmyk(1%, 0%, 74%, 51%)
CIELAB (D50)lab(51.01 -9 46.75)
LCHlch(51.01 47.6 100.9)
OKLaboklab(0.5714 -0.0382 0.1044)
OKLCHoklch(0.5714 0.1111 110.08)
Decimal8158497

Properties

Color ToneYellow, Gold
Closest named colorolive ΔE 1.8
Closest web-safe color#666633
Hue61°
Saturation (HSL / HSV)58% / 74%
Lightness (HSL)31%
Brightness or Value (HSV)49%
Luminance (Rec.601 / Rec.709)45% / 46%
Relative luminance (WCAG)0.1906
Red / Green / Blue124 / 125 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.36:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.81: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 70.1 / -31.5 · As background with white / black text: Lc -75.6 / 33.9

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: #7c7d21;
  --color-brand-oklch: oklch(57.14% 0.1111 110.08);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(124 125 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#7c7d21] text-[#7c7d21] border-[#7c7d21]">