#7D8F21

A color in the Yellow, Gold family

#7d8f21 is a color in the Yellow, Gold family: RGB(125, 143, 33), HSL(70°, 63%, 35%), CMYK(13%, 0%, 77%, 44%). Closest named color: olivedrab. Contrast is 3.61:1 on white and 5.82:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#7d8f21
RGBrgb(125 143 33)
RGB (legacy)rgb(125, 143, 33)
RGB %rgb(49% 56% 13%)
HSLhsl(70 63% 35%)
HSV / HSBhsv(70, 77%, 56%)
HWBhwb(70 13% 44%)
CMYKcmyk(13%, 0%, 77%, 44%)
CIELAB (D50)lab(56.43 -17.53 51.73)
LCHlch(56.43 54.62 108.72)
OKLaboklab(0.6152 -0.0633 0.1154)
OKLCHoklch(0.6152 0.1316 118.74)
Decimal8228641

Properties

Color ToneYellow, Gold
Closest named colorolivedrab ΔE 2.4
Closest web-safe color#669933
Hue70°
Saturation (HSL / HSV)63% / 77%
Lightness (HSL)35%
Brightness or Value (HSV)56%
Luminance (Rec.601 / Rec.709)49% / 51%
Relative luminance (WCAG)0.2411
Red / Green / Blue125 / 143 / 33

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.5 / -38.1 · As background with white / black text: Lc -69 / 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: #7d8f21;
  --color-brand-oklch: oklch(61.52% 0.1316 118.74);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(125 143 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#7d8f21] text-[#7d8f21] border-[#7d8f21]">